On Sun, 4 Jun 2006, Eyal Raab wrote:

Hi,

I'm using VIM 7.0 under windows XP.
[snip]
What I'm trying to do is to keep using the h,j,k,l in insert mode by
mapping the alt-key to them.
Something like:
:map <M-j> <esc>ji
[snip]

:map does not include Insert mode mapping. See ":help map-modes".

This should do what you want:

  inoremap <M-h> <Left>
  inoremap <M-j> <Down>
  inoremap <M-k> <Up>
  inoremap <M-l> <Right>

See ":help imap".

HTH :)
--
Gerald

Reply via email to