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

Leave a Reply

Your email address will not be published.