Sometimes I want to autocomplete a tag name containing a colon, for example
I've added to the
'tags' option the location of the
tags file of the main documentation (which on my machine seems to be
The default mapping to autocomplete a tag name is
The problem is if I type
g:net and then hit
<C-x><C-]>, Vim decides that the tag name begins after the colon, so the candidates which are suggested in the pop-up menu all begin with
net, while I want candidates beginning with
I think the reason for this is given in an excerpt from
Alphabetic characters and characters in 'iskeyword' are used to decide which characters are included in the tag name (same as for a keyword).
When looking for the tag name to complete, Vim takes probably all the characters from the cursor position back to the first character which is not in the
And a colon is not in
'isk', as the output of
:echo &isk is
@,48-57,_,192-255,# which doesn't contain
58 (ascii code of
I don't want to change the value of
'isk' as I suspect it would break many things (text-objects, plugins).
How can I autocomplete tag names containing a colon?