I've come to this weird assertion when investigate difference of handling word movements in vanilla vim and easymotion plugin. Now I see that the root of the muddle probably lies in that one can get at least two word definitions from vim documentation. 1. from :help w - explicit, you cited it 2. from :help \< - somewhat implicit, it states that this atom corresponds to the beginning of word, where the word consists of 'iskeyword' symbols only and nothing is said about sequences of printable characters. And w and \< are implemented as documented, so 'word' in 'w' and 'word' \< are different and it is confusing.
On Jun 13, 2:30 pm, John Little <[email protected]> wrote: > On Wednesday, June 13, 2012 3:41:22 AM UTC+12, Nick Shyrokovskiy wrote: > >:set isk=@ > >in next line of .vimrc file w movement stops at positions marked by ^ > > >set ^backspace^=^eol^,^indent^,^start > > It appears to me you don't understand how w, e, and b work. From :help w > > A word consists of a sequence of letters, digits and underscores, or a > sequence of other non-blank characters, separated with white space. > > Setting isk changes this to be effectively: > > A word consists of a sequence of characters in isk, or a sequence of other > non-blank characters, separated with white space. > > The "=" and "," in your example are "other non-blank characters", so are > words for the purposes of b, e and w movements. vi was like this. > > If you > :set isk=@,=-=,,-, > > then w moves from the b to the end of the line. So, clearly 'iskeyword' is > not ignored. > > Regards, John Little -- 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
