From 4ea8fe1d0600a7020c9f3a652f1d429a96965311 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 9 Mar 2006 22:32:39 +0000 Subject: updated for version 7.0219 --- runtime/menu.vim | 59 +++++++++++--------------------------------------------- 1 file changed, 11 insertions(+), 48 deletions(-) (limited to 'runtime/menu.vim') diff --git a/runtime/menu.vim b/runtime/menu.vim index 4313a8e144..a9b1c0ec60 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -2,7 +2,7 @@ " You can also use this as a start for your own set of menus. " " Maintainer: Bram Moolenaar -" Last Change: 2006 Mar 05 +" Last Change: 2006 Mar 09 " Note that ":an" (short for ":anoremenu") is often used to make a menu work " in all modes and avoid side effects from mappings defined by the user. @@ -131,41 +131,6 @@ an 10.600 &File.-SEP4- an 10.610 &File.Sa&ve-Exit:wqa :confirm wqa an 10.620 &File.E&xit:qa :confirm qa -" Pasting blockwise and linewise selections is not possible in Insert and -" Visual mode without the +virtualedit feature. They are pasted as if they -" were characterwise instead. Add to that some tricks to leave the cursor in -" the right position, also for "gi". -" Note: the same stuff appears in mswin.vim. -if has("virtualedit") - let s:paste_cmd = ":call Paste()" - func! Paste() - let ove = &ve - set ve=all - normal! `^ - if @+ != '' - normal! "+gP - endif - let c = col(".") - normal! i - if col(".") < c " compensate for i moving the cursor left - normal! l - endif - let &ve = ove - endfunc -else - let s:paste_cmd = "\"=@+.'xy'gPFx\"_2x" -endif - -" Define the string to use for items that are present both in Edit, Popup and -" Toolbar menu. -if has("virtualedit") - let s:paste_v_cmd = '"-c' . s:paste_cmd - let s:paste_i_cmd = '' . s:paste_cmd . 'gi' -else - let s:paste_v_cmd = '"-cgix' . s:paste_cmd . '"_x' - let s:paste_i_cmd = 'x' . s:paste_cmd . '"_s' -endif - func! SelectAll() exe "norm gg" . (&slm == "" ? "VG" : "gH\G") endfunc @@ -182,8 +147,8 @@ vnoremenu 20.350 &Edit.&Copy"+y "+y cnoremenu 20.350 &Edit.&Copy"+y nnoremenu 20.360 &Edit.&Paste"+gP "+gP cnoremenu &Edit.&Paste"+gP + -exe 'vnoremenu