In gvim normal mode, the *
key searches for the word under the cursor.
Say I have a file with the following lines:
life
alifexea a_life_xea
a life x
a=life
life=a
b=life;
c=b?life:a;
life?
?life
The cursor is in first line. I press *
in normal mode. I expect and want all "life" to get highlighted except the 2nd line which has "alifexea a_life_xea". But it doesn't highlight the last 3 lines since the ?
is probably considered a normal character. If I search using /life
then all lines get highlighted which I do not want. Is there a way around (some setting) to make sure my expectation is satisfied when I search using *
?.
:se isk?
iskeyword=@,48-57,_,192-255
?
to theiskeyword
option, which is about what I'd expect. But if you do not have?
in youriskeyword
option, then it should work fine for you. Could you post your.vimrc
?:verbose
to see where an option was last set. e.g.:verbose set isk?
. See:h :set-verbose
for more help.