Antony Scriven wrote:
On 26 March 2010 00:42, AK wrote:

 > 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


Thanks, that's actually pretty good.. I'll use it unless somebody finds a better way! -ak

--
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.

Reply via email to