6

Im trying to increase my efficiency at moving between buffers, and the Ctrl-w-(hjkl) movement doesn't work for me. How can I remap Ctrl-(hjkl) to the Ctrl-w version? I have already tried:

inoremap <C-j> <C-wj>

but that doesnt work.

7

You almost had it. Try:

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

You can also add the inoremap if you want it to work from insert mode.

  • It worked, although I had to move it to the top of my .vimrc. Thanks for the quick reply! – tkaden4 Jul 5 '16 at 19:36
  • I accidentally made an edit to this answer, please reject it! Sorry! – Rotareti Jul 22 '16 at 11:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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