Commit 8b77f9cf authored by Murukesh Mohanan's avatar Murukesh Mohanan

added check for empty env var

parent 057dbb2f
...@@ -50,6 +50,7 @@ set pastetoggle=<F10> ...@@ -50,6 +50,7 @@ set pastetoggle=<F10>
set title set title
set titlelen=20 set titlelen=20
set laststatus=2 set laststatus=2
set wildignore+=*.aux,*.toc,*.pdf
let g:tex_flavor = "latex" let g:tex_flavor = "latex"
...@@ -120,11 +121,11 @@ let g:DiffColors = 100 ...@@ -120,11 +121,11 @@ let g:DiffColors = 100
" current_file = eval ('expand("%")') " current_file = eval ('expand("%")')
" current_index = str (current.buffer.number) " current_index = str (current.buffer.number)
" PATHS = ['~', '~/.vim', '/etc'] " PATHS = ['~', '~/.vim', '/etc']
" "
" if current_file != '' and not isfile (current_file): " if current_file != '' and not isfile (current_file):
" for p in map (expanduser, PATHS): " for p in map (expanduser, PATHS):
" f = join (p, current_file) " f = join (p, current_file)
" if isfile (f): " if isfile (f):
" command ('bad ' + f) " command ('bad ' + f)
" command ('bd ' + current_index) " command ('bd ' + current_index)
" command ('bl') " command ('bl')
...@@ -132,7 +133,7 @@ let g:DiffColors = 100 ...@@ -132,7 +133,7 @@ let g:DiffColors = 100
" break " break
" EOF " EOF
" endfunction " endfunction
" "
" autocmd BufWinEnter * nested call LookupFiles() " autocmd BufWinEnter * nested call LookupFiles()
" From http://vi.stackexchange.com/questions/2009/ " From http://vi.stackexchange.com/questions/2009/
...@@ -156,4 +157,6 @@ autocmd FileType * exec("setlocal dictionary+=".$HOME."/.vim/dictionary/".expand ...@@ -156,4 +157,6 @@ autocmd FileType * exec("setlocal dictionary+=".$HOME."/.vim/dictionary/".expand
set completeopt+=menuone,longest,preview set completeopt+=menuone,longest,preview
set complete+=k set complete+=k
source $HOME/.vim/local/$CONFLOCAL.vim if !empty($CONFLOCAL)
source $HOME/.vim/local/$CONFLOCAL.vim
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment