puk
puk

Reputation: 16752

Can't map <C-J> in Vim

I have the following two mappings in my vimrc file

  nnoremap <C-j> :tabp<CR>
  nnoremap <C-k> :tabn<CR>

Ctrlk works, but Ctrlj lands me in insert mode for some reason. If I issue the command :nnoremap <C-j> :tabp<CR> then Ctrlj works correctly.

If I issue the command :map or :verbose map I see the mapping for <C-k> but nothing for <C-j>. Why is this happening?

Upvotes: 2

Views: 2451

Answers (1)

puk
puk

Reputation: 16752

A plugin, imaps.vim was interfering with the command, most likely unmaping it (thanks to Benoit for pointing it out). If this happens to anyone else, just delete the plugin.

Upvotes: 4

Related Questions