add nimrod library paths to vim's path variable

This commit is contained in:
Zahary Karadjov 2013-04-10 14:40:54 +03:00
commit 4c3f2313b0

View file

@ -15,6 +15,17 @@ setlocal commentstring=#\ %s
setlocal omnifunc=NimComplete
setlocal suffixesadd=.nim
if executable('nimrod')
let nimrod_paths = split(system('nimrod dump'),'\n')
let &l:path = &g:path
for path in nimrod_paths
if finddir(path) == path
let &l:path = path . "," . &l:path
endif
endfor
endif
compiler nimrod
let &cpo = s:cpo_save