diff options
Diffstat (limited to 'runtime/doc/if_lua.txt')
-rw-r--r-- | runtime/doc/if_lua.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/runtime/doc/if_lua.txt b/runtime/doc/if_lua.txt index 24c53fa95b..f7f954e200 100644 --- a/runtime/doc/if_lua.txt +++ b/runtime/doc/if_lua.txt @@ -1,4 +1,4 @@ -*if_lua.txt* For Vim version 8.1. Last change: 2019 May 05 +*if_lua.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM REFERENCE MANUAL by Luis Carvalho @@ -32,7 +32,7 @@ Examples: :lua local curbuf = vim.buffer() curbuf[7] = "line #7" < -:[range]lua << {endmarker} +:[range]lua << [endmarker] {script} {endmarker} Execute Lua script {script}. @@ -40,9 +40,11 @@ Examples: feature wasn't compiled in. To avoid errors, see |script-here|. -{endmarker} must NOT be preceded by any white space. If {endmarker} is -omitted from after the "<<", a dot '.' must be used after {script}, like -for the |:append| and |:insert| commands. +The {endmarker} must NOT be preceded by any white space. + +If [endmarker] is omitted from after the "<<", a dot '.' must be used after +{script}, like for the |:append| and |:insert| commands. + This form of the |:lua| command is mainly useful for including Lua code in Vim scripts. |