On Tue, 14 Feb 2012, Andy Wokula wrote:

Am 13.02.2012 22:54, schrieb Alexey Muranov:
Hello,

i am new to this group, let me know if feature requests should be discussed somewhere else.

Here is feature for which i couldn't find a plugin with google, but which looks so natural to me that i think it should be included somehow.

When searching (with "/") and a partial match is highlighted, and the first partial match is a part of the string one is looking for, it would be nice if instead of typing the rest of the search string, one could simply hit the right arrow a number of times to simultaneously extend the highlighted match and complete the search string.

Thanks,

Alexey.

You are looking for  CTRL-L
It's already there :-)

And here are some mappings to use the arrow keys for the same purpose:

:cmap <expr> <Right> getcmdtype() =~ '[/?]' ? '<C-l>' : '<Right>'
:cmap <expr> <Left> getcmdtype() =~ '[/?]' ? '<BS>' : '<Left>'

:help :cmap
:help :map-<expr>
:help getcmdtype()

--
Best,
Ben

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

Raspunde prin e-mail lui