From bc82e6d58efa15cc263814f7d9f552ef790f6f60 Mon Sep 17 00:00:00 2001 From: Bjorn Winckler Date: Sat, 25 Oct 2008 18:22:12 +0200 Subject: [PATCH] More help on menu key equivalents --- runtime/doc/gui_mac.txt | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/runtime/doc/gui_mac.txt b/runtime/doc/gui_mac.txt index 962e3653f4..72f3db9c8d 100644 --- a/runtime/doc/gui_mac.txt +++ b/runtime/doc/gui_mac.txt @@ -377,9 +377,11 @@ can be used to send action messages. ":maca name:". The key equivalent is specified with the - syntax. Note that key equivalents must contain the - Cmd modifier flag (), and they take precedence - over normal mappings. + syntax. This is case-sensitive, so means Cmd-a + whereas means Cmd-Shift-a. + Note that key equivalents must contain the Cmd + modifier flag (), and they take precedence over + normal mappings. Use the syntax "key=" to clear the key equivalent of a menu. This can be used to free up a key combination that is set in the system gvimrc so that @@ -403,7 +405,12 @@ equivalent Cmd-n, which opens a new window when selected: > :macm Window.Next\ Tab key= 3. Create a mapping in normal mode which closes the current tab/window: > :map :maca performClose: -> +4. Free up Cmd-t and remap it to open a file browser in a split view: > + macm File.New\ Tab key= + nmap :sp . +Note: These two lines must be added to .gvimrc else the first line will fail. +The second line is case sensitive, so (Cmd-Shift-t) is not the same as + (Cmd-t)! The standard Vim menus are modified in "$VIM/gvimrc". Take a look at that file for more examples on how to set up menus. Note: When no window is open a @@ -532,8 +539,8 @@ Note that url has to be a file:// url pointing to an existing local file. 10. Keyboard shortcuts *macvim-shortcuts* Most keyboard shortcuts in MacVim are bound to menu items and can be -discovered by looking through the menus. The remaining shortcuts are listed -here: +discovered by looking through the menus (see |macvim-menus| on how to create +your own menu shortcuts). The remaining shortcuts are listed here: *Cmd-.* ** Cmd-. Interrupt Vim. This is synonymous with CTRL-C and can