Wednesday, February 16, 2011

Re: How to move to beginning of command line

* Jeremy [2011.02.16 13:10]:
> In a terminal, I can just use the CTRL-A and CTRL-E to go to the
> beginning and end of the command. Is there something similar in Vim?

You can map the keys you like in command mode (I use the same keys as you):

cnoremap <C-A> <Home>
cnoremap <C-E> <End>

For more robust editing of the command-line you can use the command-line window
and have the full power of vim editing:

:h c_CTRL-f

HTH,

--
JR

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

No comments: