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

Not as far as I know (besides the obvious up, down, left right).  I have
this in my vimrc:

" allow for emacs-like movement in insert mode
noremap! <C-p> <up>
noremap! <C-n> <down>
noremap! <C-f> <right>
noremap! <C-b> <left>
noremap! <M-f> <C-right>
noremap! <M-b> <C-left>

You would of course change the above by substituting hjkl instead of
bnpf.  The abovementioned mappings would work in command-line mode as
well, which was the original reason for me adding it.

Regards
-- 

[ Albie Janse van Rensburg ~ http://morph.telspace.co.za ]

A foolish consistency is the hobgoblin of little minds.
                -- Ralph Waldo Emerson


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

Reply via email to