Disable or remove default vim keybinding

key mappingvimvimrc

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?

Best Answer

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>
Related Question