I'm using codex for generating tags file but vim does not follow tags such as
$ <$> . <*>
ctrl-] it only works if I manually call tag
Is it a bug? or there is something that I don't know
ctrl-] uses the
word under the cursor, (as opposed to a
WORD) which means that any punctuation is excluded.
A word consists of a sequence of letters, digits and underscores, or a sequence of other non-blank characters, separated with white space (spaces, tabs, ). This can be changed with the 'iskeyword' option. An empty line is also considered to be a word.
So your options are:
WORD(which is any white space separated characters).
You can do so with the following mapping in your
nnoremap <silent><C-]> :exe "tag ".expand('<cWORD>')<CR>
nnoremap: create a non-recursive, normal mode mapping
<silent><C-]>: map CTRL + ] and do it without echoing anything
:exe: execute the following string as a command
"tag ": use the tag command
.expand('<cWORD>'): append the
WORDunder the cursor to the tag command
<CR>: a carriage return. Simply executes the command.
Please note that doing this will not allow you to use tags in the vim help files as they surround their tags with
:h WORD for more info.