diff --git a/runtime/doc/gui_mac.txt b/runtime/doc/gui_mac.txt index f0c9013316..5d444d1303 100644 --- a/runtime/doc/gui_mac.txt +++ b/runtime/doc/gui_mac.txt @@ -1,4 +1,4 @@ -*gui_mac.txt* For Vim version 7.3. Last change: 2010 Dec 28 +*gui_mac.txt* For Vim version 7.3. Last change: 2011 Jul 26 VIM REFERENCE MANUAL by Bjorn Winckler @@ -594,10 +594,17 @@ Alt-Up Move cursor one paragraph forward (see |alt-movement|). Alt-Down Move cursor to the previous paragraph (see |alt-movement|). + *delete-key* *macvim-* +Delete key Delete selection in visual mode. (This overrides the + default behavior of moving the cursor left.) + Note that the key labeled "delete" on a Mac keyboard + is known to Vim as . + *cmd-movement* *alt-movement* -The above mappings involving Cmd/Alt + arrow key are enabled by default in the -system gvimrc file "$VIM/gvimrc". You can quickly disable all of these by -adding the following lines to your "~/.vimrc" (not .gvimrc) file: > +The above mappings involving Cmd/Alt + arrow key (including the delete key) +are enabled by default in the system gvimrc file "$VIM/gvimrc". You can +disable all of these by adding the following lines to your "~/.vimrc" (not +.gvimrc) file: > if has("gui_macvim") let macvim_skip_cmd_opt_movement = 1 endif diff --git a/runtime/doc/tags b/runtime/doc/tags index 85651f2928..60c5127a02 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -5293,6 +5293,7 @@ definition-search tagsrch.txt /*definition-search* definitions intro.txt /*definitions* delete() eval.txt /*delete()* delete-insert change.txt /*delete-insert* +delete-key gui_mac.txt /*delete-key* delete-menus gui.txt /*delete-menus* deleting change.txt /*deleting* design-assumptions develop.txt /*design-assumptions* @@ -6609,6 +6610,7 @@ mac-vimfile os_mac.txt /*mac-vimfile* macintosh os_mac.txt /*macintosh* macro map.txt /*macro* macvim gui_mac.txt /*macvim* +macvim- gui_mac.txt /*macvim-* macvim-backspace gui_mac.txt /*macvim-backspace* macvim-clientserver remote.txt /*macvim-clientserver* macvim-colors gui_mac.txt /*macvim-colors* diff --git a/src/MacVim/gvimrc b/src/MacVim/gvimrc index 84df752d1c..bcf9918856 100644 --- a/src/MacVim/gvimrc +++ b/src/MacVim/gvimrc @@ -1,7 +1,7 @@ " System gvimrc file for MacVim " " Maintainer: Bjorn Winckler -" Last Change: Sun Aug 29 2009 +" Last Change: Tue Jul 26 2011 " " This is a work in progress. If you feel so inclined, please help me improve " this file. @@ -63,6 +63,10 @@ if !exists("macvim_skip_cmd_opt_movement") imap imap + + " Make the 'delete' key delete selection in visual+select mode instead of + " moving cursor to the left. + vmap d endif " !exists("macvim_skip_cmd_opt_movement")