Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I'm in insert mode, I sometimes want to be able to move around without using the arrow keys, and without having to go back into normal mode. So in my vimrc I've set up key bindings to do this:

imap <C-l> <right>
imap <C-h> <left>
imap <C-k> <up>
imap <C-j> <down>

But for some odd reason the only one that doesn't work is the last one, . Doing this in insert mode just gives no response. I'm wondering why this might be, and I just don't know where to even begin looking for the problem. It doesn't appear to be mapped to anything since nothing happens when I do it, whether I'm in the terminal or in gvim. Any pointers would be great! Thanks!

share|improve this question
    
Found this post. User sehe's answer solved my problem here:stackoverflow.com/questions/8304421/…. –  bhh1988 Jun 23 '12 at 18:59
add comment

1 Answer

you can try to use inoremap <C-j> <down> to override old keysettings and you can have a look what a key is already mapped with

:map <C-j>
share|improve this answer
    
Thanks for the help. That was the first step I needed to figure out how to solve the problem. Found a stackoverflow post very similar to this that almost perfectly solves my problem. –  bhh1988 Jun 23 '12 at 18:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.