Monday, December 21, 2009

Re: '*' search without cursor move

Steven Woody 写道:
> Hi,
>
> When I use '*' command to search and highlight current word in a file,
> the cursor also moves to the next match. But at many cases, I hope
> the cursor can be stay where it is and don't move at all. Can I?
> Thanks.

press * then press # will send you back.

so if you want the cursor back, map something to *#

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments: