> On 26 March 2010 02:38, AK wrote:
> > Indeed, I'm also thinking about that because I find
> > :hlsearch very useful and doing /\i\+ necessitates
> > mapping :nohl after it, but this leads to some ugly
> > flicker in gvim. So, if someone more experienced than me
> > makes a function that'd be awesome; if not, I will
> > eventually make one myself I guess.
>
> No, make one yourself now. It will be instructive. And if it
> doesn't work send what you do have to the list and we'll
> help. And that way it will not be instructive just for you
> but also for other readers of this list.
Something like this may be?
fu! <sid>MyWMotion(count)
for i in range(a:count)
call search('\i\+')
endfor
endfu
noremap <silent> w :<c-u>call <sid>MyWMotion(v:count1)<cr>
I haven't looked at how to make this work with visual mode yet.
regards,
Christian
--
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