From 0224eb03d22bcf84789e642e24370afeb7314b55 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sun, 28 Aug 2011 17:41:18 +0300 Subject: [PATCH] added automatic discovery of nimrod library paths and any tags files residing there --- ftplugin/nimrod.vim | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ftplugin/nimrod.vim b/ftplugin/nimrod.vim index 24970de..1ae76e8 100644 --- a/ftplugin/nimrod.vim +++ b/ftplugin/nimrod.vim @@ -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