Created
September 12, 2013 15:11
-
-
Save mhinz/6539113 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! GoTags() abort | |
let files = substitute(glob('`find -name "*.go" -not -path "*/goeg/*" 2> /dev/null`'), '\n', ' ', '') | |
let tempfile = tempname() | |
call system('gotags '. files .' > '. tempfile) | |
call rename(tempfile, 'tags') | |
echom '>> Go tags updated!' | |
endfunction | |
command Gotags :call GoTags() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment