Sunday, March 28, 2010

Re: 'w' command to actually move to the next word

AK wrote in news:4BAC02EE.4090009@gmail.com:

> Is there any way to get vim's 'w' command (and similar) to move from
> word to word?
>
> E.g.: tar <foo bar="jar">
>
> I want vim to see this as 4 words separated by non-words (i.e.
> whitespace and punctuation). After all, tar, foo, bar and jar are words
> and =" is certainly not a word! And that's how I want vim to behave. I
> want to be on 't' and hitting '3w' should take me to 'j'.
>
> Obviously I want this to work with all punctuation, :;,.- etc.
>
> Thanks!
>
Hmm this has always bothered me w/o me realising it, I end up using the f and
t commands and oft times W (as recommended by Sven)


--
zzapper
http://zzapper.co.uk/ Technical Tips

--
You received this message from the "vim_use" 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

To unsubscribe from this group, send email to vim_use+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments:

Post a Comment