add nimrod library paths to vim's path variable
This commit is contained in:
parent
ca3142c5e2
commit
4c3f2313b0
1 changed files with 11 additions and 0 deletions
|
|
@ -15,6 +15,17 @@ setlocal commentstring=#\ %s
|
||||||
setlocal omnifunc=NimComplete
|
setlocal omnifunc=NimComplete
|
||||||
setlocal suffixesadd=.nim
|
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
|
compiler nimrod
|
||||||
|
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue