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?

1 Answer 1

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>
1
  • It does not seem to work in vim 8.2.3582 on Windows
    – Stephane
    Jun 10, 2022 at 14:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .