Skip to content

Commit 6e8df9e

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents c8e22b9 + 2973daa commit 6e8df9e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2762
-1346
lines changed

runtime/autoload/ada.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ function ada#Map_Menu (Text, Keys, Command)
591591
\" :" . a:Command
592592
execute
593593
\ "inoremap <buffer>" .
594-
\ " <Learder>a" . a:Keys .
594+
\ " <Leader>a" . a:Keys .
595595
\" <C-O>:" . a:Command
596596
endif
597597
return

runtime/autoload/sqlcomplete.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: SQL
33
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
44
" Version: 16.0
5-
" Last Change: 2015 Dec 29
5+
" Last Change: 2017 Oct 15
66
" Homepage: http://www.vim.org/scripts/script.php?script_id=1572
77
" Usage: For detailed help
88
" ":help sql.txt"
@@ -860,7 +860,7 @@ function! s:SQLCGetColumns(table_name, list_type)
860860

861861
" Start characterwise visual mode
862862
" Advance right one character
863-
" Search foward until one of the following:
863+
" Search forward until one of the following:
864864
" 1. Another select/update/delete statement
865865
" 2. A ; at the end of a line (the delimiter)
866866
" 3. The end of the file (incase no delimiter)

runtime/doc/autocmd.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.0. Last change: 2017 Jul 14
1+
*autocmd.txt* For Vim version 8.0. Last change: 2017 Oct 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -501,6 +501,10 @@ CmdlineEnter After moving the cursor to the command line,
501501
|cmdwin-char|
502502
*CmdlineLeave*
503503
CmdlineLeave Before leaving the command line.
504+
Also when abandoning the command line, after
505+
typing CTRL-C or <Esc>.
506+
When the commands result in an error the
507+
command line is still executed.
504508
<afile> is set to a single character,
505509
indicating the type of command-line.
506510
|cmdwin-char|

runtime/doc/cmdline.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 8.0. Last change: 2017 Sep 17
1+
*cmdline.txt* For Vim version 8.0. Last change: 2017 Oct 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -839,7 +839,8 @@ Note: these are typed literally, they are not special keys!
839839
<cfile> is replaced with the path name under the cursor (like what
840840
|gf| uses)
841841
<afile> When executing autocommands, is replaced with the file name
842-
for a file read or write.
842+
of the buffer being manipulated, or the file for a read or
843+
write.
843844
<abuf> When executing autocommands, is replaced with the currently
844845
effective buffer number (for ":r file" and ":so file" it is
845846
the current buffer, the file being read/sourced is not in a

runtime/doc/diff.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*diff.txt* For Vim version 8.0. Last change: 2017 Sep 26
1+
*diff.txt* For Vim version 8.0. Last change: 2017 Oct 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -326,7 +326,7 @@ g:diff_translations to zero: >
326326
327327
let g:diff_translations = 0
328328
<
329-
After setting this variable, Reload the syntax script: >
329+
After setting this variable, reload the syntax script: >
330330
331331
set syntax=diff
332332
<

runtime/doc/eval.txt

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Sep 17
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Oct 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -120,9 +120,8 @@ To test for a non-empty string, use empty(): >
120120
Function arguments often behave slightly different from |TRUE|: If the
121121
argument is present and it evaluates to a non-zero Number, |v:true| or a
122122
non-empty String, then the value is considered to be TRUE.
123-
Note that " " and "0" are also non-empty strings, thus cause the mode to be
124-
cleared. A List, Dictionary or Float is not a Number or String, thus
125-
evaluates to FALSE.
123+
Note that " " and "0" are also non-empty strings, thus considered to be TRUE.
124+
A List, Dictionary or Float is not a Number or String, thus evaluate to FALSE.
126125

127126
*E745* *E728* *E703* *E729* *E730* *E731* *E908* *E910* *E913*
128127
List, Dictionary, Funcref, Job and Channel types are not automatically
@@ -815,14 +814,15 @@ Examples:
815814
"abc" == "Abc" evaluates to 1 if 'ignorecase' is set, 0 otherwise
816815

817816
*E691* *E692*
818-
A |List| can only be compared with a |List| and only "equal", "not equal" and
819-
"is" can be used. This compares the values of the list, recursively.
820-
Ignoring case means case is ignored when comparing item values.
817+
A |List| can only be compared with a |List| and only "equal", "not equal",
818+
"is" and "isnot" can be used. This compares the values of the list,
819+
recursively. Ignoring case means case is ignored when comparing item values.
821820

822821
*E735* *E736*
823822
A |Dictionary| can only be compared with a |Dictionary| and only "equal", "not
824-
equal" and "is" can be used. This compares the key/values of the |Dictionary|
825-
recursively. Ignoring case means case is ignored when comparing item values.
823+
equal", "is" and "isnot" can be used. This compares the key/values of the
824+
|Dictionary| recursively. Ignoring case means case is ignored when comparing
825+
item values.
826826

827827
*E694*
828828
A |Funcref| can only be compared with a |Funcref| and only "equal", "not
@@ -2321,7 +2321,7 @@ searchpos({pattern} [, {flags} [, {stopline} [, {timeout}]]])
23212321
server2client({clientid}, {string})
23222322
Number send reply string
23232323
serverlist() String get a list of available servers
2324-
setbufline( {expr}, {lnum}, {line})
2324+
setbufline({expr}, {lnum}, {line})
23252325
Number set line {lnum} to {line} in buffer
23262326
{expr}
23272327
setbufvar({expr}, {varname}, {val})
@@ -2950,6 +2950,9 @@ ch_evalraw({handle}, {string} [, {options}]) *ch_evalraw()*
29502950
correct contents. Also does not add a newline for a channel
29512951
in NL mode, the caller must do that. The NL in the response
29522952
is removed.
2953+
Note that Vim does not know when the text received on a raw
2954+
channel is complete, it may only return the first part and you
2955+
need to use ch_readraw() to fetch the rest.
29532956
See |channel-use|.
29542957

29552958
{only available when compiled with the |+channel| feature}
@@ -6463,6 +6466,12 @@ remote_expr({server}, {string} [, {idvar} [, {timeout}]])
64636466
{only available when compiled with the |+clientserver| feature}
64646467
Note: Any errors will cause a local error message to be issued
64656468
and the result will be the empty string.
6469+
6470+
Variables will be evaluated in the global namespace,
6471+
independent of a function currently being activel. Except
6472+
when in debug mode, then local function variables and
6473+
arguments can be evaluated.
6474+
64666475
Examples: >
64676476
:echo remote_expr("gvim", "2+2")
64686477
:echo remote_expr("gvim1", "b:current_syntax")
@@ -8154,6 +8163,11 @@ term_setsize({buf}, {expr}) *term_setsize()*
81548163
term_start({cmd}, {options}) *term_start()*
81558164
Open a terminal window and run {cmd} in it.
81568165

8166+
{cmd} can be a string or a List, like with |job_start()|. The
8167+
string "NONE" can be used to open a terminal window without
8168+
starting a job, the pty of the terminal can be used by a
8169+
command like gdb.
8170+
81578171
Returns the buffer number of the terminal window. If {cmd}
81588172
cannot be executed the window does open and shows an error
81598173
message.
@@ -9059,13 +9073,16 @@ See |:verbose-cmd| for more information.
90599073

90609074
*E124* *E125* *E853* *E884*
90619075
:fu[nction][!] {name}([arguments]) [range] [abort] [dict] [closure]
9062-
Define a new function by the name {name}. The name
9063-
must be made of alphanumeric characters and '_', and
9064-
must start with a capital or "s:" (see above). Note
9065-
that using "b:" or "g:" is not allowed. (since patch
9066-
7.4.260 E884 is given if the function name has a colon
9067-
in the name, e.g. for "foo:bar()". Before that patch
9068-
no error was given).
9076+
Define a new function by the name {name}. The body of
9077+
the function follows in the next lines, until the
9078+
matching |:endfunction|.
9079+
9080+
The name must be made of alphanumeric characters and
9081+
'_', and must start with a capital or "s:" (see
9082+
above). Note that using "b:" or "g:" is not allowed.
9083+
(since patch 7.4.260 E884 is given if the function
9084+
name has a colon in the name, e.g. for "foo:bar()".
9085+
Before that patch no error was given).
90699086

90709087
{name} can also be a |Dictionary| entry that is a
90719088
|Funcref|: >
@@ -9201,9 +9218,10 @@ to the number of named arguments. When using "...", the number of arguments
92019218
may be larger.
92029219

92039220
It is also possible to define a function without any arguments. You must
9204-
still supply the () then. The body of the function follows in the next lines,
9205-
until the matching |:endfunction|. It is allowed to define another function
9206-
inside a function body.
9221+
still supply the () then.
9222+
9223+
It is allowed to define another function inside a function
9224+
body.
92079225

92089226
*local-variables*
92099227
Inside a function local variables can be used. These will disappear when the

runtime/doc/filetype.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim version 8.0. Last change: 2017 Mar 28
1+
*filetype.txt* For Vim version 8.0. Last change: 2017 Oct 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -43,7 +43,7 @@ Detail: The ":filetype on" command will load one of these files:
4343
BufNewFile and BufRead events. If the file type is not found by the
4444
name, the file $VIMRUNTIME/scripts.vim is used to detect it from the
4545
contents of the file.
46-
When the GUI is running or will start soon, the menu.vim script is
46+
When the GUI is running or will start soon, the |menu.vim| script is
4747
also sourced. See |'go-M'| about avoiding that.
4848

4949
To add your own file types, see |new-filetype| below. To search for help on a
@@ -607,6 +607,7 @@ Works on:
607607
- Linux
608608
- Mac OS
609609
- FreeBSD
610+
- OpenBSD
610611
- Cygwin
611612
- Win 10 under Bash
612613

@@ -620,6 +621,10 @@ For bash,zsh,ksh or dash by adding to the config file (.bashrc,.zshrc, ...)
620621

621622
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
622623

624+
On OpenBSD:
625+
626+
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER"
627+
623628
For (t)csh by adding to the config file
624629

625630
setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"

runtime/doc/ft_rust.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ COMMANDS *rust-commands*
199199
|g:rust_playpen_url| is the base URL to the playpen, by default
200200
"https://play.rust-lang.org/".
201201

202-
|g:rust_shortener_url| is the base URL for the shorterner, by
202+
|g:rust_shortener_url| is the base URL for the shortener, by
203203
default "https://is.gd/"
204204

205205
:RustFmt *:RustFmt*

runtime/doc/gui.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ menus and menu items. They are most useful for things that you can't remember
482482
what the key sequence was.
483483

484484
For creating menus in a different language, see |:menutrans|.
485+
If you don't want to use menus at all, see |'go-M'|.
485486

486487
*menu.vim*
487488
The default menus are read from the file "$VIMRUNTIME/menu.vim". See
@@ -498,7 +499,11 @@ in the menu (which can take a bit of time to load). If you want to have all
498499
filetypes already present at startup, add: >
499500
:let do_syntax_sel_menu = 1
500501
501-
<
502+
Note that the menu.vim is sourced when `:syntax on` or `:filetype on` is
503+
executed or after your .vimrc file is sourced. This means that the 'encoding'
504+
option and the language of messages (`:language messages`) must be set before
505+
that (if you want to change them).
506+
502507
*console-menus*
503508
Although this documentation is in the GUI section, you can actually use menus
504509
in console mode too. You will have to load |menu.vim| explicitly then, it is

runtime/doc/gui_w32.txt

Lines changed: 3 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui_w32.txt* For Vim version 8.0. Last change: 2014 Dec 20
1+
*gui_w32.txt* For Vim version 8.0. Last change: 2017 Oct 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -382,38 +382,8 @@ Note that a menu that starts with ']' will not be displayed.
382382
==============================================================================
383383
7. Command line arguments *gui-w32-cmdargs*
384384

385-
Analysis of a command line into parameters is not standardised in MS Windows.
386-
Gvim has to provide logic to analyse a command line. This logic is likely to
387-
be different from the default logic provided by a compilation system used to
388-
build vim. The differences relate to unusual double quote (") usage.
389-
The arguments "C:\My Music\freude.txt" and "+/Sch\"iller" are handled in the
390-
same way. The argument "+/Sch""iller" may be handled different by gvim and
391-
vim, depending what it was compiled with.
392-
393-
The rules are:
394-
a) A parameter is a sequence of graphic characters.
395-
b) Parameters are separated by white space.
396-
c) A parameter can be enclosed in double quotes to include white space.
397-
d) A sequence of zero or more backslashes (\) and a double quote (")
398-
is special. The effective number of backslashes is halved, rounded
399-
down. An even number of backslashes reverses the acceptability of
400-
spaces and tabs, an odd number of backslashes produces a literal
401-
double quote.
402-
403-
So:
404-
" is a special double quote
405-
\" is a literal double quote
406-
\\" is a literal backslash and a special double quote
407-
\\\" is a literal backslash and a literal double quote
408-
\\\\" is 2 literal backslashes and a special double quote
409-
\\\\\" is 2 literal backslashes and a literal double quote
410-
etc.
411-
412-
Example: >
413-
gvim "C:\My Music\freude" +"set ignorecase" +/"\"foo\\" +\"bar\\\"
414-
415-
opens "C:\My Music\freude" and executes the line mode commands: >
416-
set ignorecase; /"foo\ and /bar\"
385+
Command line arguments behave the same way as with the console application,
386+
see |win32-cmdargs|.
417387

418388
==============================================================================
419389
8. Various *gui-w32-various*

0 commit comments

Comments
 (0)