17

Is there a way to disable or remove a default vim keybinding?

For example, if I wanted <S-k> (shift-k) to do nothing, how would I achieve this?

hlin117
  • 427
  • 2
  • 4
  • 10

1 Answers1

23

You can't unmap internal keybindings that vim needs but you can map them to <Nop> to disable them. Run this command in vim: :map <S-k> <Nop> or add this line to you .vimrc file:

map <S-k> <Nop>
spinlock
  • 436
  • 3
  • 7