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