Skip to content

Instantly share code, notes, and snippets.

@zarac
Last active September 25, 2015 09:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zarac/900879 to your computer and use it in GitHub Desktop.
Save zarac/900879 to your computer and use it in GitHub Desktop.
vim SetTagsFile()
"" Path to tags file.
function! SetTagsFile()
let cwd = expand('%:p:h')
if cwd =~# "/some/path/.*"
if !exists("tags[/some/path/tags]")
set tags+=/some/path/tags
endif
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment