I have found this works well for me: (holding down the ALT or META key) inoremap <M-j> <C-O>gj inoremap <M-k> <C-O>gk noremap! <M-h> <Left> noremap! <M-l> <Right>
This works perfectly for GVIM; terminal VIM took a little while setting up -- see http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_Vim On Feb 12, 12:26 am, soundphed <[email protected]> wrote: > Hi there, I am wondering if it might be neat to be able to move around > in insert mode via the h,j,k,l keys, as in normal mode. > Say like with a modifier key, so you could hold down <ctrl> and hjkl > would then move the cursor while keeping you in insert mode. > > Does something of this nature already exist in vim? > If not, how does one move the cursor left,right,up,down while in > insert mode? --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
