> 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'.
Hmm, that's a good question; I wouldn't mind knowing that
myself. The following will work for your example.
:nmap w /\i\+<CR>
But it will need refinement to work well. Let me know if
there's an elegant solution! --Antony
--
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