On 2010-07-08, Tony Mechelynck wrote:
> On 08/07/10 20:17, Ivan wrote:
> >Is there any way to emulate command mode in the search? E.g., if I
> >use the /string command to search, I would like to type 'j' and 'k' to
> >scroll through the search history instead of hitting the arrow keys
> >(like Unix/Aix vi). I would like the same for the :commands, too
> >(e.g., substitute). I.e., if I type ':' to perform a command, I would
> >like to be able to scroll through the history by typing 'j' and 'k'
> >instead of the arrow keys.
> >
> >In addition to scrolling through the history, I would like to be able
> >to use the command mode nav keys instead of arrow keys (i.e., 'h',
> >'l', 'b', and 'w') to traverse the string.
> >
> >Does anyone know if this is possible? I have read the 572 page Vim
> >book; however, I did not see anything about this. I also have looked
> >up every command in the _vimrc file and don't see anything either.
> >
> >Thank you in advance for your help.
> >
> >Ivan
> >
>
> I think what you want is the command-line window, opened from Normal
> mode by q/ or q? (for Search, or q: for Ex-commands) or from
> command-line mode by (usually) Ctrl-F
>
>
> See :help cmdline-window
Instead of Ctrl-F, I use <Esc>, which I find myself hitting
automatically when I want to edit the command line anyway. You can
enable the use of <Esc> by putting this line in your _vimrc:
set cedit=<Esc>
You might also be interested in
:help emacs-keys
While the emacs key bindings aren't as immediately natural as vi key
bindings, they are easier to use and offer more functions than the
arrow keys.
Regards,
Gary
--
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