only set vim plugin global variables if they haven't yet been set, so they can be configured from vimrc

db4
Joe Groff 2009-09-10 22:55:17 -04:00
parent 5a8e5facfd
commit d26082c031
1 changed files with 7 additions and 2 deletions

View File

@ -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()