From a68bae47a617fffc3835ba7da8bf5bdabca7bc83 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Fri, 21 Sep 2007 12:47:55 +0000 Subject: [PATCH] Added info on resetting and changing key equivalents git-svn-id: http://macvim.googlecode.com/svn/trunk@253 96c4425d-ca35-0410-94e5-3396d5c13a8f --- doc/gui_mac.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/gui_mac.txt b/doc/gui_mac.txt index 7f6128e07b..61fca74bb2 100644 --- a/doc/gui_mac.txt +++ b/doc/gui_mac.txt @@ -147,6 +147,19 @@ Note that key equivalents: * take precedence over normal mappings made with ":map" * can only be modified during startup (e.g. in .gvimrc) +It is possible to reset a key equivalent by calling :menukeyequiv with a menu +name but no key. This is so that the default key equivalents can be reset in +"~/.gvimrc". For example, if you would like to free up (which is the +key equivalent of "File.Save") then add the following line to "~/.gvimrc": > + menukeyequiv File.Save +Now you can use :map to bind to whatever you like. + +It is not necessary to reset a key equivalent if all you want to do is to +change the key equivalent of a menu item. For example, say you want to use + as the key equivalent for "Next Tab", then add the following line +to "~/.gvimrc": > + menukeyequiv Window.Next\ Tab +< *:action* It is typical for menu items in Cocoa applications to bind to Objective-C selectors. To support this, MacVim introduces the ":action" command. This