(Change to TipImported template + severe manual clean) |
(Move categories to tip template) |
||
Line 9: | Line 9: | ||
|version=5.7 |
|version=5.7 |
||
|rating=13/6 |
|rating=13/6 |
||
+ | |category1= |
||
+ | |category2= |
||
}} |
}} |
||
If there's a built-in key command in Vim that you find annoying, or that you often hit by accident, then you can disable the key by mapping it to nothing. For example: |
If there's a built-in key command in Vim that you find annoying, or that you often hit by accident, then you can disable the key by mapping it to nothing. For example: |
Revision as of 04:03, 25 April 2008
Tip 643 Printable Monobook Previous Next
created January 26, 2004 · complexity intermediate · author Alfvaen · version 5.7
If there's a built-in key command in Vim that you find annoying, or that you often hit by accident, then you can disable the key by mapping it to nothing. For example:
:map K <Nop>
For "<Nop>", type the five characters as they appear (less-than N o p greater-than).
Of course, you can always
:unmap K
if you start doing C programming and want to instantly "man" things under the cursor again.