diff --git a/chrome/content/vimperator/mappings.js b/chrome/content/vimperator/mappings.js index 0e2a68df..954d1dba 100644 --- a/chrome/content/vimperator/mappings.js +++ b/chrome/content/vimperator/mappings.js @@ -859,6 +859,14 @@ function Mappings() //{{{ help: "Stops loading the current web page." } )); + addDefaultMap(new Map(vimperator.modes.NORMAL, [""], + function() { return; }, + { + short_help: "Do nothing", + help: "This command is useful for disabling a specific mapping. " + + ":map <C-n> <Nop> will prevent <C-n> from doing anything." + } + )); // if you ever add/remove keys here, also check them in the vimperator.events.onKeyPress() addDefaultMap(new Map(vimperator.modes.NORMAL, ["", ""], vimperator.events.onEscape,