Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
16970:db31eab2f32b | 16971:e18b1c654d09 |
---|---|
1 *eval.txt* For Vim version 8.1. Last change: 2019 Jun 04 | 1 *eval.txt* For Vim version 8.1. Last change: 2019 Jun 06 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
13061 : echo "Expression evaluation is compiled in" | 13061 : echo "Expression evaluation is compiled in" |
13062 :else | 13062 :else |
13063 : echo "You will _never_ see this message" | 13063 : echo "You will _never_ see this message" |
13064 :endif | 13064 :endif |
13065 | 13065 |
13066 To execute a command only when the |+eval| feature is disabled requires a trick, | 13066 To execute a command only when the |+eval| feature is disabled can be done in |
13067 as this example shows: > | 13067 two ways. The simplest is to exit the script (or Vim) prematurely: > |
13068 if 1 | |
13069 echo "commands executed with +eval" | |
13070 finish | |
13071 endif | |
13072 args " command executed without +eval | |
13073 | |
13074 If you do not want to abort loading the script you can use a trick, as this | |
13075 example shows: > | |
13068 | 13076 |
13069 silent! while 0 | 13077 silent! while 0 |
13070 set history=111 | 13078 set history=111 |
13071 silent! endwhile | 13079 silent! endwhile |
13072 | 13080 |