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.

Operation System: OS X

Console: iTerm

sh: zsh

This worked fine i go to bottom window from top:

map <c-down> <c-w><down>
imap <c-down> <esc><c-w><c-down>

But this doesn't work

map <c-right> <c-w><right>
imap <c-right> <esc><c-w><c-right>

Somebody help me !) Tell why....

share|improve this question
2  
Isn't <C-Right> already used by iTerm? –  romainl Aug 18 '12 at 13:14
add comment

1 Answer

up vote 0 down vote accepted

Most of the "Vim Crowd" would agree that not using the arrow keys is a good thing. That is why many vimrc's will include:

nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l

This will allow you to do ctrl - w then jump to up, down, left, right with hjkl bindings. This does not solve your problem with the arrow keys but, does give you a "correct" way to get to your required solution.

share|improve this answer
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.