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?


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>
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.