On Feb 6, 2:55 pm, Matt Wozniski <[email protected]> wrote:
> On Sat, Feb 6, 2010 at 1:50 PM, Girish Venkatasubramanian wrote:
>
> I think it's perfectly reasonable to map the arrow keys to do
> something slightly different than j/k.  Obviously, you'd only want
> that remap in normal, visual, and operator-pending modes, though.  You
> don't want pressing <Down> in insert mode to insert "gj" into the
> buffer at the cursor.  So, the command would be
>
>     :noremap <Down> gj
>     :noremap <Up> gk
>

If you want the same behavior in Insert mode, you could still get it
with:

:inoremap <Down> <C-O>gj
:inoremap <Up>   <C-O>gk

The <C-O> is to leave insert mode and perform a single normal mode
command, returning to insert mode when done.

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

Reply via email to