diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-03-27 22:30:07 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-03-27 22:30:07 +0100 |
commit | 76f3b1ad77188182e3c924d1e70269c171b9ecc5 (patch) | |
tree | 7532f2594754ac586ce47a062d6f03618493a19f /runtime/doc/eval.txt | |
parent | 73b044dca94c8d427144b920c12fe5c47007a6f6 (diff) | |
download | vim-76f3b1ad77188182e3c924d1e70269c171b9ecc5.zip |
Update runtime files.
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 56585d1ba..78237ec9a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.4. Last change: 2014 Mar 22 +*eval.txt* For Vim version 7.4. Last change: 2014 Mar 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -5978,7 +5978,7 @@ tabpagenr([{arg}]) *tabpagenr()* The number can be used with the |:tab| command. -tabpagewinnr({tabarg}, [{arg}]) *tabpagewinnr()* +tabpagewinnr({tabarg} [, {arg}]) *tabpagewinnr()* Like |winnr()| but for tab page {tabarg}. {tabarg} specifies the number of tab page to be used. {arg} is used like with |winnr()|: @@ -7481,11 +7481,19 @@ This does NOT work: > :execute "!ls " . shellescape(filename, 1) < Note: The executed string may be any command-line, but - you cannot start or end a "while" or "for" command. - Thus this is illegal: > - :execute 'while i > 5' - :execute 'echo "test" | break' - :endwhile + starting or ending "if", "while" and "for" does not + always work, because when commands are skipped the + ":execute" is not evaluated and Vim loses track of + where blocks start and end. Also "break" and + "continue" should not be inside ":execute". + This example does not work, because the ":execute" is + not evaluated and Vim does not see the "while", and + gives an error for finding an ":endwhile": > + :if 0 + : execute 'while i > 5' + : echo "test" + : endwhile + :endif < It is allowed to have a "while" or "if" command completely in the executed string: > |