diff runtime/doc/eval.txt @ 16971:e18b1c654d09

Update runtime files - Add typescript syntax and indent. commit https://github.com/vim/vim/commit/773a97c254d02784079fb3b20447620412588850 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 6 20:39:55 2019 +0200 Update runtime files - Add typescript syntax and indent.
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 Jun 2019 20:45:06 +0200
parents d23afa4d8b63
children d5e1e09a829f
line wrap: on
line diff
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -1,4 +1,4 @@
-*eval.txt*	For Vim version 8.1.  Last change: 2019 Jun 04
+*eval.txt*	For Vim version 8.1.  Last change: 2019 Jun 06
 
 
 		  VIM REFERENCE MANUAL	  by Bram Moolenaar
@@ -13063,8 +13063,16 @@ missing: >
 	:  echo "You will _never_ see this message"
 	:endif
 
-To execute a command only when the |+eval| feature is disabled requires a trick,
-as this example shows: >
+To execute a command only when the |+eval| feature is disabled can be done in
+two ways.  The simplest is to exit the script (or Vim) prematurely: >
+	if 1
+	   echo "commands executed with +eval"
+	   finish
+	endif
+	args  " command executed without +eval
+
+If you do not want to abort loading the script you can use a trick, as this
+example shows: >
 
 	silent! while 0
 	  set history=111