Skip to content

Instantly share code, notes, and snippets.

/**
* This is a short code snippet made for the website https://awbw.amarriner.com/
*
* It prints the info related to any damaged pipe seam, which is public information in fog of war maps,
* but is annoying to check manually for maps with large numbers of pipe seams
*
* It is written in javascript, and is run through the developer console.
* Open the developer console (F12 hotkey on most browsers I know of) and run this code:
*/
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)