Hi, I always felt that Vim's (actually Vi) word motions design is a bit awkward. Let's say that the cursor is on the word 'self' in the following line:
if self.words.list[i/(j+1)] == '' If I want to take the naive way (without counting words or think of other commands combinations) and move the cursor to the word 'list' I'll need to type w 4 times. This is very annoying especially when using word motions inside file paths which will require x2 hits than what's actually needed. Also, changing 'self.words.list' is c5w and not c3w -this is very confusing and not intuitive. A simple solution might be to add an option that will indicate a list of characters that will be treated as white spaces. There might be a problem though with characters like '/' which should be treated as white space for unix file paths and as a word for expressions like x/y. Maybe the option should take regular expression instead of using 'iskeyword' like format. Also, I think that the format of 'iskeyword' is not flexible enough. Starting from the beginning of the above line (the word 'if') and hitting w several times will bring you to: s, ., w, ., l, [, i, /, j, +, 1, ), =, ' while I'd expect it to jump to: s, w, l, [, i, /, (, j, +, 1, ), ], =, ' This makes sense to me more than grouping every sequence of non 'iskeyword' characters together. What do you think? Ramel -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
