added automatic discovery of nimrod library paths and any tags files residing there

This commit is contained in:
Zahary Karadjov 2011-08-28 17:41:18 +03:00
commit 0224eb03d2

View file

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