From 5b8d8fdb526bd21dbac64a3ea815a1e628b93b41 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 16 Aug 2005 23:01:50 +0000 Subject: updated for version 7.0131 --- runtime/menu.vim | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'runtime/menu.vim') diff --git a/runtime/menu.vim b/runtime/menu.vim index 52607235ce..f4ed1b5283 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: 2005 Jul 30 +" Last Change: 2005 Aug 16 " 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. @@ -198,10 +198,10 @@ an 20.405 &Edit.-SEP2- if has("win32") || has("win16") || has("gui_gtk") || has("gui_kde") || has("gui_motif") an 20.410 &Edit.&Find\.\.\. :promptfind vunmenu &Edit.&Find\.\.\. - vnoremenu &Edit.&Find\.\.\. y:promptfind " + vnoremenu &Edit.&Find\.\.\. y:call FixFText():promptfind " an 20.420 &Edit.Find\ and\ Rep&lace\.\.\. :promptrepl vunmenu &Edit.Find\ and\ Rep&lace\.\.\. - vnoremenu &Edit.Find\ and\ Rep&lace\.\.\. y:promptrepl " + vnoremenu &Edit.Find\ and\ Rep&lace\.\.\. y:call FixFText():promptrepl " else an 20.410 &Edit.&Find/ / an 20.420 &Edit.Find\ and\ Rep&lace:%s :%s/ @@ -212,6 +212,11 @@ endif an 20.425 &Edit.-SEP3- an 20.430 &Edit.Settings\ &Window :options +fun! s:FixFText() + " Fix text in nameless register to be used with :promptfind. + let @" = substitute(@", "[\r\n]", '\\n', 'g') +endfun + " Edit/Global Settings an 20.440.100 &Edit.&Global\ Settings.Toggle\ Pattern\ &Highlight:set\ hls! :set hls! hls? an 20.440.110 &Edit.&Global\ Settings.Toggle\ &Ignore-case:set\ ic! :set ic! ic? -- cgit v1.2.3