Hi,
I have this mapping in my vimrc:
nnoremap <C-]> g<C-]>
which tells vim to jump to function definition rather than declaration when I
push <C-]>.
However, this setting will trigger a tag-searching behavior on startup. If vim
fails to find that tag file, it will throw errors like this:
E433: No Tag File
E426: tag not found, xxxxx
where ``xxxxx'' is current identifier under the cursor. The tricky thing is,
vim will automatically pre-push a `c' key for you, which means that if you push
`j' or `k' key after starting up vim it will effectively act as `cj' or `ck'
and you will delete a line accidentally, which is VERY VERY annoying
Installing the plugin `tagbar.vim' helps a little bit, as it would generate a
tag file for almost every file you open. Nevertheless, tagbar.vim cannot
generate tag file for all kinds of file(e.g., binary executable file).
Therefore, you still have those weird behavior.
I don't know whether this is a bug or a feature. Hopefully this behavior can be
changed, and I will only be warned "E433: No Tag File" at the moment I press
g<C-]> without a tag file.
I am using vim 8.0
--
Yubin
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.