Skip to content

Instantly share code, notes, and snippets.

@JonLoesch
Created November 8, 2011 20:22
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 JonLoesch/1349053 to your computer and use it in GitHub Desktop.
Save JonLoesch/1349053 to your computer and use it in GitHub Desktop.
command! -nargs=1 TAG call TAG('<args>')
function! TAG(tagname)
set tags^=tags-novars
set tags^=./tags-novars
exec 'tag ' . a:tagname
set tags-=tags-novars
set tags-=./tags-novars
endfunction
" Of course, it requires you to have the alternate tags file (I named mine tags-novars)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment