I have come across this behaviour and the documentation does not make sense to me.
Consider this sentence:
I am 100% sure there is something I am missing.
This is the next line.
Pressing w
takes me to the start of the next word. What a word is, is defined by the 'iskeyword'
option. %
is by default not defined as part of a word in there. Yet, pressing w
jumps to %
. It does not jump to the dot at the end of the first line, so why is it jumping to the %
symbol?
From the documentation:
Notice that "w" moves to the start of the next word if it already is at the start of a word.
(Taken from usr_03.txt)
Well it does not behave that way as far as I can see. w
moves either to the beginning of a word or to %
,(
,`)``, whichever it finds first.
Can someone tell me why %
is somehow considered a word, even if it is not in 'iskeyword'
, while a .
is not considered a word, unless it is part of the 'iskeyword'
option?