History Report a problem
Article Edit this page Discussion

Disable built-in command

From Vim Tips Wiki

Jump to: navigation, search

Tip 643 Previous TipNext Tip

Created: January 26, 2004 Complexity: intermediate Author: Alfvaen Minimum version: 5.7 Karma: 13/6 Imported from: Tip#643


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.

[edit] References

[edit] Comments


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Pushing Daisies
Legend of Zelda Wiki
Terminator Wiki
Everquest II Wiki
Astronomy Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions


Vote for featured Wikia!

Send this article to a friend
"Disable built-in command"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation