only set vim plugin global variables if they haven't yet been set, so they can be configured from vimrc
parent
5a8e5facfd
commit
d26082c031
|
@ -2,8 +2,13 @@ nmap <silent> <Leader>fi :FactorVocabImpl<CR>
|
||||||
nmap <silent> <Leader>fd :FactorVocabDocs<CR>
|
nmap <silent> <Leader>fd :FactorVocabDocs<CR>
|
||||||
nmap <silent> <Leader>ft :FactorVocabTests<CR>
|
nmap <silent> <Leader>ft :FactorVocabTests<CR>
|
||||||
|
|
||||||
|
if !exists("g:FactorRoot")
|
||||||
let g:FactorRoot = "~/factor"
|
let g:FactorRoot = "~/factor"
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !exists("g:FactorVocabRoots")
|
||||||
let g:FactorVocabRoots = ["core", "basis", "extra", "work"]
|
let g:FactorVocabRoots = ["core", "basis", "extra", "work"]
|
||||||
|
endif
|
||||||
|
|
||||||
command! -nargs=1 -complete=custom,FactorCompleteVocab FactorVocab :call GoToFactorVocab("<args>")
|
command! -nargs=1 -complete=custom,FactorCompleteVocab FactorVocab :call GoToFactorVocab("<args>")
|
||||||
command! FactorVocabImpl :call GoToFactorVocabImpl()
|
command! FactorVocabImpl :call GoToFactorVocabImpl()
|
||||||
|
|
Loading…
Reference in New Issue