duckworthd
duckworthd

Reputation: 15207

How do you check when a key is mapped in vim?

I have a few mappings in vim for moving between splits set in my .vimrc,

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

All of these work except for <C-j>, which I suspect is being remapped in one of my plugins. I'd like to find out where, but I'm not sure how. Is there a way to find "where was <C-j> last mapped?"

Upvotes: 3

Views: 184

Answers (1)

lucapette
lucapette

Reputation: 20724

:verbose nnoremap <c-j>

should help.

Upvotes: 12

Related Questions