From 9427e2cc5dc271b6cee898621393a3b5a910b604 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 11 Nov 2007 03:02:19 +0000 Subject: [PATCH] ignore mappings if :normal is called with the ! --- content/commands.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/commands.js b/content/commands.js index bfb79600..99140a66 100644 --- a/content/commands.js +++ b/content/commands.js @@ -948,7 +948,7 @@ vimperator.Commands = function() //{{{ } )); addDefaultCommand(new vimperator.Command(["norm[al]"], - function(args) + function(args, special) { if (!args) { @@ -956,12 +956,13 @@ vimperator.Commands = function() //{{{ return; } - vimperator.events.feedkeys(args); + vimperator.events.feedkeys(args, special); }, { usage: ["norm[al][!] {commands}"], short_help: "Execute Normal mode commands", - help: "Example: :normal 20j scrolls 20 lines down." + help: "Example: :normal 20j scrolls 20 lines down. " + + "If the [!] is specified mappings will not be used." } )); // TODO: remove duplication in :map