diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-31 21:07:14 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-31 21:07:14 +0200 |
commit | 5477506a9f01d40fad2e8f0555bc37adee30478f (patch) | |
tree | afb8271b63c5813ea4f2dee83df994f33791fed5 | |
parent | 0e6bfb9b2eb108d96a49ac4f8dc638c2eefeda2b (diff) |
Update runtime files.
62 files changed, 338 insertions, 3483 deletions
diff --git a/runtime/compiler/cs.vim b/runtime/compiler/cs.vim index 4cc1784678..4f6dd3cdfd 100644 --- a/runtime/compiler/cs.vim +++ b/runtime/compiler/cs.vim @@ -1,8 +1,8 @@ " Vim compiler file -" Compiler: Microsoft Visual Studio C# -" Maintainer: Zhou YiChao (broken.zhou@gmail.com) -" Previous Maintainer: Joseph H. Yao (hyao@sina.com) -" Last Change: 2012 Apr 30 +" Compiler: Microsoft Visual Studio C# +" Maintainer: Yichao Zhou (broken.zhou@gmail.com) +" Previous Maintainer: Joseph H. Yao (hyao@sina.com) +" Last Change: Jul 22, 2019 if exists("current_compiler") finish @@ -20,7 +20,7 @@ CompilerSet errorformat+=%f(%l\\,%v):\ %t%*[^:]:\ %m, \%trror%*[^:]:\ %m, \%tarning%*[^:]:\ %m -CompilerSet makeprg=csc\ % +CompilerSet makeprg=csc\ %:S let &cpo = s:keepcpo unlet s:keepcpo diff --git a/runtime/compiler/erlang.vim b/runtime/compiler/erlang.vim index e177a279c5..e22887e05e 100644 --- a/runtime/compiler/erlang.vim +++ b/runtime/compiler/erlang.vim @@ -1,13 +1,13 @@ " Vim compiler file " Compiler: Erlang " Maintainer: Dmitry Vasiliev <dima at hlabs dot org> -" Last Change: 2012-02-13 +" Last Change: 2019 Jul 23 if exists("current_compiler") finish endif let current_compiler = "erlang" -CompilerSet makeprg=erlc\ -Wall\ % +CompilerSet makeprg=erlc\ -Wall\ %:S CompilerSet errorformat=%f:%l:\ %m diff --git a/runtime/compiler/fortran_cv.vim b/runtime/compiler/fortran_cv.vim index 089d3b27c2..bc217bdc66 100644 --- a/runtime/compiler/fortran_cv.vim +++ b/runtime/compiler/fortran_cv.vim @@ -22,7 +22,7 @@ CompilerSet errorformat= \%-Z%p%^%.%#, \%-G%.%#, " Compiler call -CompilerSet makeprg=df\ /nologo\ /noobj\ /c\ % +CompilerSet makeprg=df\ /nologo\ /noobj\ /c\ %:S " Visual fortran defaults to printing output on stderr " Adjust option shellpipe accordingly diff --git a/runtime/compiler/jikes.vim b/runtime/compiler/jikes.vim index 5125128535..2d4500e894 100644 --- a/runtime/compiler/jikes.vim +++ b/runtime/compiler/jikes.vim @@ -1,7 +1,7 @@ " Vim Compiler File " Compiler: Jikes " Maintainer: Dan Sharp <dwsharp at hotmail dot com> -" Last Change: 20 Jan 2009 +" Last Change: 2019 Jul 23 " URL: http://dwsharp.users.sourceforge.net/vim/compiler if exists("current_compiler") @@ -14,5 +14,5 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal endif " Jikes defaults to printing output on stderr -CompilerSet makeprg=jikes\ -Xstdout\ +E\ \"%\" +CompilerSet makeprg=jikes\ -Xstdout\ +E\ \"%:S\" CompilerSet errorformat=%f:%l:%v:%*\\d:%*\\d:%*\\s%m diff --git a/runtime/compiler/onsgmls.vim b/runtime/compiler/onsgmls.vim index 130d3e21b3..68925ef459 100644 --- a/runtime/compiler/onsgmls.vim +++ b/runtime/compiler/onsgmls.vim @@ -1,7 +1,7 @@ " Vim compiler file " Compiler: onsgmls " Maintainer: Robert Rowsome <rowsome@wam.umd.edu> -" Last Change: 2004 Mar 27 +" Last Change: 2019 Jul 23 if exists("current_compiler") finish @@ -15,7 +15,7 @@ endif let s:cpo_save = &cpo set cpo-=C -CompilerSet makeprg=onsgmls\ -s\ % +CompilerSet makeprg=onsgmls\ -s\ %:S CompilerSet errorformat=onsgmls:%f:%l:%c:%t:%m, \onsgmls:%f:%l:%c:%m diff --git a/runtime/compiler/perl.vim b/runtime/compiler/perl.vim index 583c6c3787..a857caed8f 100644 --- a/runtime/compiler/perl.vim +++ b/runtime/compiler/perl.vim @@ -1,7 +1,7 @@ " Vim Compiler File " Compiler: Perl syntax checks (perl -Wc) " Maintainer: Christian J. Robinson <heptite@gmail.com> -" Last Change: 2006 Aug 13 +" Last Change: 2019 Jul 22 if exists("current_compiler") finish @@ -27,7 +27,7 @@ else let s:taintopt = '' endif -exe 'CompilerSet makeprg=perl\ -' . s:warnopt . s:taintopt . 'c\ %' +exe 'CompilerSet makeprg=perl\ -' . s:warnopt . s:taintopt . 'c\ %:S' CompilerSet errorformat= \%-G%.%#had\ compilation\ errors., diff --git a/runtime/compiler/rustc.vim b/runtime/compiler/rustc.vim index c27bdc9c0c..5e5b9a4e0a 100644 --- a/runtime/compiler/rustc.vim +++ b/runtime/compiler/rustc.vim @@ -19,7 +19,7 @@ endif if exists("g:rustc_makeprg_no_percent") && g:rustc_makeprg_no_percent != 0 CompilerSet makeprg=rustc else - CompilerSet makeprg=rustc\ \% + CompilerSet makeprg=rustc\ \%:S endif " Old errorformat (before nightly 2016/08/10) diff --git a/runtime/compiler/splint.vim b/runtime/compiler/splint.vim index 6239ca7139..3d7ada6d1d 100644 --- a/runtime/compiler/splint.vim +++ b/runtime/compiler/splint.vim @@ -2,7 +2,7 @@ " Compiler: splint/lclint (C source code checker) " Maintainer: Ralf Wildenhues <Ralf.Wildenhues@gmx.de> " Splint Home: http://www.splint.org/ -" Last Change: 2005 Apr 21 +" Last Change: 2019 Jul 23 " $Revision: 1.3 $ if exists("current_compiler") @@ -19,7 +19,7 @@ set cpo-=C " adapt this if you want to check more than one file at a time. " put command line options in .splintrc or ~/.splintrc -CompilerSet makeprg=splint\ % +CompilerSet makeprg=splint\ %:S " Note: when using the new array bounds checking flags: Each warning " usually has several lines and several references to source code mostly diff --git a/runtime/compiler/xmlwf.vim b/runtime/compiler/xmlwf.vim index cd2e2bb6ad..3de9d08d55 100644 --- a/runtime/compiler/xmlwf.vim +++ b/runtime/compiler/xmlwf.vim @@ -1,7 +1,7 @@ " Vim Compiler File " Compiler: xmlwf " Maintainer: Robert Rowsome <rowsome@wam.umd.edu> -" Last Change: 2004 Mar 27 +" Last Change: 2019 Jul 23 if exists("current_compiler") finish @@ -15,7 +15,7 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal command -nargs=* CompilerSet setlocal <args> endif -CompilerSet makeprg=xmlwf\ % +CompilerSet makeprg=xmlwf\ %:S CompilerSet errorformat=%f:%l%c:%m diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt index a8e5857728..1f981a6c97 100644 --- a/runtime/doc/channel.txt +++ b/runtime/doc/channel.txt @@ -1,4 +1,4 @@ -*channel.txt* For Vim version 8.1. Last change: 2019 Jul 21 +*channel.txt* For Vim version 8.1. Last change: 2019 Jul 28 VIM REFERENCE MANUAL by Bram Moolenaar @@ -18,7 +18,7 @@ The Netbeans interface also uses a channel. |netbeans| 5. Channel commands |channel-commands| 6. Using a RAW or NL channel |channel-raw| 7. More channel functions |channel-more| -8. channel functions details |channel-functions-details| +8. Channel functions details |channel-functions-details| 9. Starting a job with a channel |job-start| 10. Starting a job without a channel |job-start-nochannel| 11. Job functions |job-functions-details| @@ -462,7 +462,7 @@ For a JS or JSON channel this returns one decoded message. This includes any sequence number. ============================================================================== -8. channel functions details *channel-functions-details* +8. Channel functions details *channel-functions-details* ch_canread({handle}) *ch_canread()* Return non-zero when there is something to read from {handle}. diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 0a4917a359..a06aa4d756 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -1,4 +1,4 @@ -*cmdline.txt* For Vim version 8.1. Last change: 2019 May 07 +*cmdline.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1064,8 +1064,7 @@ Also see |`=|. In the command-line window the command line can be edited just like editing text in any window. It is a special kind of window, because you cannot leave it in a normal way. -{not available when compiled without the |+cmdline_hist| or |+vertsplit| -feature} +{not available when compiled without the |+cmdline_hist| feature} OPEN *c_CTRL-F* *q:* *q/* *q?* @@ -1140,7 +1139,6 @@ VARIOUS The command-line window cannot be used: - when there already is a command-line window (no nesting) - for entering an encryption key or when using inputsecret() -- when Vim was not compiled with the |+vertsplit| feature Some options are set when the command-line window is opened: 'filetype' "vim", when editing an Ex command-line; this starts Vim syntax diff --git a/runtime/doc/diff.txt b/runtime/doc/diff.txt index 452d0acc85..8c1f03aa60 100644 --- a/runtime/doc/diff.txt +++ b/runtime/doc/diff.txt @@ -1,4 +1,4 @@ -*diff.txt* For Vim version 8.1. Last change: 2019 Jun 02 +*diff.txt* For Vim version 8.1. Last change: 2019 Jul 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -335,7 +335,7 @@ After setting this variable, reload the syntax script: > FINDING THE DIFFERENCES *diff-diffexpr* The 'diffexpr' option can be set to use something else than the standard -"diff" program to compare two files and find the differences. +"diff" program to compare two files and find the differences. *E959* When 'diffexpr' is empty, Vim uses this command to find the differences between file1 and file2: > diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index bd05691380..fdddc22edc 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.1. Last change: 2019 Jul 21 +*eval.txt* For Vim version 8.1. Last change: 2019 Jul 30 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1766,7 +1766,7 @@ v:exception The value of the exception most recently caught and not :try : throw "oops" :catch /.*/ - : echo "caught" v:exception + : echo "caught " .. v:exception :endtry < Output: "caught oops". @@ -2956,7 +2956,7 @@ argv([{nr} [, {winid}]) The {winid} argument specifies the window ID, see |argc()|. -assert_ functions are documented here: |assert-functions| +assert_ functions are documented here: |assert-functions-details| asin({expr}) *asin()* @@ -4423,7 +4423,10 @@ get({blob}, {idx} [, {default}]) get({dict}, {key} [, {default}]) Get item with key {key} from |Dictionary| {dict}. When this item is not available return {default}. Return zero when - {default} is omitted. + {default} is omitted. Useful example: > + let val = get(g:, 'var_name', 'default') +< This gets the value of g:var_name if it exists, and uses + 'default' when it does not exist. get({func}, {what}) Get an item with from Funcref {func}. Possible values for {what} are: @@ -4799,8 +4802,9 @@ getcwd([{winnr} [, {tabnr}]]) getenv({name}) *getenv()* Return the value of environment variable {name}. When the variable does not exist |v:null| is returned. That - is different from a variable set to an empty string. - See also |expr-env|. + is different from a variable set to an empty string, although + some systems interpret the empty value as the variable being + deleted. See also |expr-env|. getfontname([{name}]) *getfontname()* Without an argument returns the name of the normal font being @@ -7162,7 +7166,8 @@ remove({blob}, {idx} [, {end}]) :call remove(mylist, 0, 9) remove({dict}, {key}) - Remove the entry from {dict} with key {key}. Example: > + Remove the entry from {dict} with key {key} and return it. + Example: > :echo "removed " . remove(dict, "one") < If there is no {key} in {dict} this is an error. @@ -8829,7 +8834,7 @@ tempname() *tempname()* *temp-file-name* term_ functions are documented here: |terminal-function-details| -test_ functions are documented here: |test-functions| +test_ functions are documented here: |test-functions-details| *timer_info()* 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. diff --git a/runtime/doc/if_mzsch.txt b/runtime/doc/if_mzsch.txt index 7b7e6b1a5c..c6888a8b61 100644 --- a/runtime/doc/if_mzsch.txt +++ b/runtime/doc/if_mzsch.txt @@ -1,4 +1,4 @@ -*if_mzsch.txt* For Vim version 8.1. Last change: 2019 May 05 +*if_mzsch.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM REFERENCE MANUAL by Sergey Khorev @@ -39,7 +39,7 @@ To speed up the process, you might also want to use --disable-gracket and :[range]mz[scheme] {stmt} Execute MzScheme statement {stmt}. -:[range]mz[scheme] << {endmarker} +:[range]mz[scheme] << [endmarker] {script} {endmarker} Execute inlined MzScheme script {script}. @@ -47,6 +47,13 @@ To speed up the process, you might also want to use --disable-gracket and feature wasn't compiled in. To avoid errors, see |script-here|. + The {endmarker} below the {script} 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. + *:mzfile* *:mzf* :[range]mzf[ile] {file} Execute the MzScheme script in {file}. diff --git a/runtime/doc/if_perl.txt b/runtime/doc/if_perl.txt index 7e33af24a1..bee9b88bf4 100644 --- a/runtime/doc/if_perl.txt +++ b/runtime/doc/if_perl.txt @@ -1,4 +1,4 @@ -*if_perl.txt* For Vim version 8.1. Last change: 2019 May 05 +*if_perl.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM REFERENCE MANUAL by Sven Verdoolaege @@ -55,15 +55,18 @@ The ActiveState one should work, Strawberry Perl is a good alternative. working: > :perl VIM::Msg("Hello") -:pe[rl] << {endpattern} +:pe[rl] << [endpattern] {script} {endpattern} Execute Perl script {script}. - {endpattern} must NOT be preceded by any white space. - If {endpattern} is omitted, it defaults to a dot '.' + The {endpattern} after {script} must NOT be preceded + by any white space. + + If [endpattern] is omitted, it defaults to a dot '.' like for the |:append| and |:insert| commands. Using '.' helps when inside a function, because "$i;" looks like the start of an |:insert| command to Vim. + This form of the |:perl| command is mainly useful for including perl code in vim scripts. Note: This command doesn't work when the Perl feature diff --git a/runtime/doc/if_pyth.txt b/runtime/doc/if_pyth.txt index 9e2d3017ce..4f04199d5e 100644 --- a/runtime/doc/if_pyth.txt +++ b/runtime/doc/if_pyth.txt @@ -1,4 +1,4 @@ -*if_pyth.txt* For Vim version 8.1. Last change: 2019 May 04 +*if_pyth.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM REFERENCE MANUAL by Paul Moore @@ -34,7 +34,7 @@ Both can be available at the same time, but read |python-2-and-3|. the `:python` command is working: > :python print "Hello" -:[range]py[thon] << {endmarker} +:[range]py[thon] << [endmarker] {script} {endmarker} Execute Python script {script}. @@ -42,9 +42,11 @@ Both can be available at the same time, but read |python-2-and-3|. 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} below the {script} 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 |:python| command is mainly useful for including python code in Vim scripts. diff --git a/runtime/doc/if_ruby.txt b/runtime/doc/if_ruby.txt index de36c0131a..0eca0b6b66 100644 --- a/runtime/doc/if_ruby.txt +++ b/runtime/doc/if_ruby.txt @@ -1,4 +1,4 @@ -*if_ruby.txt* For Vim version 8.1. Last change: 2019 May 05 +*if_ruby.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM REFERENCE MANUAL by Shugo Maeda @@ -28,15 +28,19 @@ downloading Ruby there. :rub[y] {cmd} Execute Ruby command {cmd}. A command to try it out: > :ruby print "Hello" -:rub[y] << {endpattern} +:rub[y] << [endpattern] {script} {endpattern} Execute Ruby script {script}. - {endpattern} must NOT be preceded by any white space. - If {endpattern} is omitted, it defaults to a dot '.' - like for the |:append| and |:insert| commands. This - form of the |:ruby| command is mainly useful for + The {endpattern} after {script} must NOT be preceded + by any white space. + + If [endpattern] is omitted, it defaults to a dot '.' + like for the |:append| and |:insert| commands. + + This form of the |:ruby| command is mainly useful for including ruby code in vim scripts. + Note: This command doesn't work when the Ruby feature wasn't compiled in. To avoid errors, see |script-here|. diff --git a/runtime/doc/if_tcl.txt b/runtime/doc/if_tcl.txt index 4a5379ddb0..e37dce9092 100644 --- a/runtime/doc/if_tcl.txt +++ b/runtime/doc/if_tcl.txt @@ -1,4 +1,4 @@ -*if_tcl.txt* For Vim version 8.1. Last change: 2019 May 05 +*if_tcl.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM REFERENCE MANUAL by Ingo Wilken @@ -30,7 +30,7 @@ comments, ideas etc to <Ingo.Wilken@informatik.uni-oldenburg.de> is working: > :tcl puts "Hello" -:[range]tc[l] << {endmarker} +:[range]tc[l] << [endmarker] {script} {endmarker} Execute Tcl script {script}. @@ -38,9 +38,11 @@ comments, ideas etc to <Ingo.Wilken@informatik.uni-oldenburg.de> 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} after {script} 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 |:tcl| command is mainly useful for including tcl code in Vim scripts. diff --git a/runtime/doc/indent.txt b/runtime/doc/indent.txt index 76431089eb..6fcf987d86 100644 --- a/runtime/doc/indent.txt +++ b/runtime/doc/indent.txt @@ -1,4 +1,4 @@ -*indent.txt* For Vim version 8.1. Last change: 2019 Feb 21 +*indent.txt* For Vim version 8.1. Last change: 2019 Jul 21 VIM RE |