Hi, 2017/4/29 Sat 11:53:04 UTC+9 Dominique Pelle wrote: > Hi > > Attached contains documentation fixes.
> --- a/runtime/doc/eval.txt > +++ b/runtime/doc/eval.txt > @@ -10686,7 +10686,7 @@ as this example shows: > > The "<CR>" here is a real CR character, type CTRL-V Enter to get it. > > When the |+eval| feature is available the ":" is remapped to add a double > -quote, which has the effect of commenting-out the command. without the > +quote, which has the effect of commenting-out the command. Without the > |+eval| feature the nnoremap command is skipped and the command is executed. > > > ============================================================================== I think this part should be totally rewritten, because this trick is not used in defaults.vim anymore. Now "silent! while 0" is used instead. Please see the attached patch. Regards, Ken Takata -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
# HG changeset patch # Parent 190d2309dfff49c8c0d3304a0274a0b87ff7dd89 diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -10693,19 +10693,13 @@ missing: > To execute a command only when the |+eval| feature is disabled requires a trick, as this example shows: > - if 1 - nnoremap : :" - endif - normal :set history=111<CR> - if 1 - nunmap : - endif - -The "<CR>" here is a real CR character, type CTRL-V Enter to get it. - -When the |+eval| feature is available the ":" is remapped to add a double -quote, which has the effect of commenting-out the command. without the -|+eval| feature the nnoremap command is skipped and the command is executed. + silent! while 0 + set history=111 + silent! endwhile + +When the |+eval| feature is available the command is skipped because of the +"while 0". Without the |+eval| feature the "while 0" is silently ignored and +the command is executed. ============================================================================== 11. The sandbox *eval-sandbox* *sandbox* *E48*
