godef: tag stack empty

Recently I configure my mac with vim-go and gotags which could jump to a tag definition with the CTRL-]  and jump back with CTRL-t .

But when I jump back , I end up with an error “godef stack empty” , fortunately you could fix this by add the follow line to your  ~/.vimrc

let g:go_def_mapping_enabled=0

1 thought on “godef: tag stack empty

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.