Skip to content

Commit a994101

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 0a7ac06 + 06f1ed2 commit a994101

Some content is hidden

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

108 files changed

+1249
-737
lines changed

runtime/defaults.vim

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" The default vimrc file.
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last change: 2017 Apr 12
4+
" Last change: 2017 Jun 13
55
"
66
" This is loaded if no vimrc file was found.
77
" Except when Vim is run with "-u NONE" or "-C".
@@ -106,12 +106,13 @@ if has("autocmd")
106106
au!
107107

108108
" When editing a file, always jump to the last known cursor position.
109-
" Don't do it when the position is invalid or when inside an event handler
110-
" (happens when dropping a file on gvim).
109+
" Don't do it when the position is invalid, when inside an event handler
110+
" (happens when dropping a file on gvim) and for a commit message (it's
111+
" likely a different one than last time).
111112
autocmd BufReadPost *
112-
\ if line("'\"") >= 1 && line("'\"") <= line("$") |
113-
\ exe "normal! g`\"" |
114-
\ endif
113+
\ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
114+
\ | exe "normal! g`\""
115+
\ | endif
115116

116117
augroup END
117118

runtime/doc/channel.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*channel.txt* For Vim version 8.0. Last change: 2016 Dec 02
1+
*channel.txt* For Vim version 8.0. Last change: 2017 Jun 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -489,6 +489,11 @@ If you want to handle both stderr and stdout with one handler use the
489489
"callback" option: >
490490
let job = job_start(command, {"callback": "MyHandler"})
491491
492+
Depending on the system, starting a job can put Vim in the background, the
493+
started job gets the focus. To avoid that, use the `foreground()` function.
494+
This might not always work when called early, put in the callback handler or
495+
use a timer to call it after the job has started.
496+
492497
You can send a message to the command with ch_evalraw(). If the channel is in
493498
JSON or JS mode you can use ch_evalexpr().
494499

runtime/doc/eval.txt

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Jun 04
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Jun 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4587,12 +4587,16 @@ getqflist([{what}]) *getqflist()*
45874587
following string items are supported in {what}:
45884588
context get the context stored with |setqflist()|
45894589
nr get information for this quickfix list; zero
4590-
means the current quickfix list
4590+
means the current quickfix list and '$' means
4591+
the last quickfix list
45914592
title get the list title
45924593
winid get the |window-ID| (if opened)
45934594
all all of the above quickfix properties
45944595
Non-string items in {what} are ignored.
45954596
If "nr" is not present then the current quickfix list is used.
4597+
To get the number of lists in the quickfix stack, set 'nr' to
4598+
'$' in {what}. The 'nr' value in the returned dictionary
4599+
contains the quickfix stack size.
45964600
In case of error processing {what}, an empty dictionary is
45974601
returned.
45984602

@@ -5461,7 +5465,10 @@ line({expr}) The result is a Number, which is the line number of the file
54615465
< *last-position-jump*
54625466
This autocommand jumps to the last known position in a file
54635467
just after opening it, if the '" mark is set: >
5464-
:au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
5468+
:au BufReadPost *
5469+
\ if line("'\"") > 1 && line("'\"") <= line("$") && &ft !~# 'commit'
5470+
\ | exe "normal! g`\""
5471+
\ | endif
54655472
54665473
line2byte({lnum}) *line2byte()*
54675474
Return the byte count from the start of the buffer for line
@@ -6991,7 +6998,9 @@ setqflist({list} [, {action}[, {what}]]) *setqflist()*
69916998
argument is ignored. The following items can be specified in
69926999
{what}:
69937000
context any Vim type can be stored as a context
6994-
nr list number in the quickfix stack
7001+
nr list number in the quickfix stack; zero
7002+
means the current quickfix list and '$' means
7003+
the last quickfix list
69957004
title quickfix list title text
69967005
Unsupported keys in {what} are ignored.
69977006
If the "nr" item is not present, then the current quickfix list
@@ -7095,18 +7104,22 @@ shellescape({string} [, {special}]) *shellescape()*
70957104
quotes within {string}.
70967105
Otherwise it will enclose {string} in single quotes and
70977106
replace all "'" with "'\''".
7107+
70987108
When the {special} argument is present and it's a non-zero
70997109
Number or a non-empty String (|non-zero-arg|), then special
71007110
items such as "!", "%", "#" and "<cword>" will be preceded by
71017111
a backslash. This backslash will be removed again by the |:!|
71027112
command.
7113+
71037114
The "!" character will be escaped (again with a |non-zero-arg|
71047115
{special}) when 'shell' contains "csh" in the tail. That is
71057116
because for csh and tcsh "!" is used for history replacement
71067117
even when inside single quotes.
7107-
The <NL> character is also escaped. With a |non-zero-arg|
7108-
{special} and 'shell' containing "csh" in the tail it's
7118+
7119+
With a |non-zero-arg| {special} the <NL> character is also
7120+
escaped. When 'shell' containing "csh" in the tail it's
71097121
escaped a second time.
7122+
71107123
Example of use with a |:!| command: >
71117124
:exe '!dir ' . shellescape(expand('<cfile>'), 1)
71127125
< This results in a directory listing for the file under the

runtime/doc/options.txt

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.0. Last change: 2017 Jun 04
1+
*options.txt* For Vim version 8.0. Last change: 2017 Jun 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3631,6 +3631,9 @@ A jump table for the options with a short description can be found at |Q_op|.
36313631
:s///gg subst. all subst. one
36323632

36333633
NOTE: This option is reset when 'compatible' is set.
3634+
DEPRECATED: Setting this option may break plugins that are not aware
3635+
of this option. Also, many users get confused that adding the /g flag
3636+
has the opposite effect of that it normally does.
36343637

36353638
*'grepformat'* *'gfm'*
36363639
'grepformat' 'gfm' string (default "%f:%l:%m,%f:%l%m,%f %l%m")
@@ -4160,7 +4163,9 @@ A jump table for the options with a short description can be found at |Q_op|.
41604163
D:DiffDelete,T:DiffText,>:SignColumn,
41614164
B:SpellBad,P:SpellCap,R:SpellRare,
41624165
L:SpellLocal,-:Conceal,+:Pmenu,=:PmenuSel,
4163-
x:PmenuSbar,X:PmenuThumb")
4166+
x:PmenuSbar,X:PmenuThumb,*:TabLine,
4167+
#:TabLineSel,_:TabLineFill,!:CursorColumn,
4168+
.:CursorLine,o:ColorColumn,q:QuickFixLine")
41644169
global
41654170
{not in Vi}
41664171
This option can be used to set highlighting mode for various
@@ -6133,10 +6138,14 @@ A jump table for the options with a short description can be found at |Q_op|.
61336138
{only available when compiled with the |+reltime|
61346139
feature}
61356140
The time in milliseconds for redrawing the display. This applies to
6136-
searching for patterns for 'hlsearch' and |:match| highlighting.
6141+
searching for patterns for 'hlsearch', |:match| highlighting an syntax
6142+
highlighting.
61376143
When redrawing takes more than this many milliseconds no further
6138-
matches will be highlighted. This is used to avoid that Vim hangs
6139-
when using a very complicated pattern.
6144+
matches will be highlighted.
6145+
For syntax highlighting the time applies per window. When over the
6146+
limit syntax highlighting is disabled until |CTRL-L| is used.
6147+
This is used to avoid that Vim hangs when using a very complicated
6148+
pattern.
61406149

61416150
*'regexpengine'* *'re'*
61426151
'regexpengine' 're' number (default 0)

runtime/doc/pattern.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 8.0. Last change: 2017 Mar 29
1+
*pattern.txt* For Vim version 8.0. Last change: 2017 Jun 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1076,12 +1076,16 @@ x A single character, with no special meaning, matches itself
10761076
":s/[/x/" searches for "[/x" and replaces it with nothing. It does
10771077
not search for "[" and replaces it with "x"!
10781078

1079+
*E944* *E945*
10791080
If the sequence begins with "^", it matches any single character NOT
10801081
in the collection: "[^xyz]" matches anything but 'x', 'y' and 'z'.
10811082
- If two characters in the sequence are separated by '-', this is
10821083
shorthand for the full list of ASCII characters between them. E.g.,
1083-
"[0-9]" matches any decimal digit. Non-ASCII characters can be
1084-
used, but the character values must not be more than 256 apart.
1084+
"[0-9]" matches any decimal digit. If the starting character exceeds
1085+
the ending character, e.g. [c-a], E944 occurs. Non-ASCII characters
1086+
can be used, but the character values must not be more than 256 apart
1087+
in the old regexp engine. For example, searching by [\u3000-\u4000]
1088+
after setting re=1 emits a E945 error. Prepending \%#=2 will fix it.
10851089
- A character class expression is evaluated to the set of characters
10861090
belonging to that character class. The following character classes
10871091
are supported:

runtime/doc/quickfix.txt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickfix.txt* For Vim version 8.0. Last change: 2017 Mar 06
1+
*quickfix.txt* For Vim version 8.0. Last change: 2017 Jun 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -472,7 +472,11 @@ keep its height, ignoring 'winheight' and 'equalalways'. You can change the
472472
height manually (e.g., by dragging the status line above it with the mouse).
473473

474474
In the quickfix window, each line is one error. The line number is equal to
475-
the error number. You can use ":.cc" to jump to the error under the cursor.
475+
the error number. The current entry is highlighted with the QuickFixLine
476+
highlighting. You can change it to your liking, e.g.: >
477+
:hi QuickFixLine ctermbg=Yellow guibg=Yellow
478+
479+
You can use ":.cc" to jump to the error under the cursor.
476480
Hitting the <Enter> key or double-clicking the mouse on a line has the same
477481
effect. The file containing the error is opened in the window above the
478482
quickfix window. If there already is a window for that file, it is used

runtime/doc/repeat.txt

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 8.0. Last change: 2017 Feb 06
1+
*repeat.txt* For Vim version 8.0. Last change: 2017 Jun 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -46,7 +46,7 @@ of area is used, see |visual-repeat|.
4646
==============================================================================
4747
2. Multiple repeats *multi-repeat*
4848

49-
*:g* *:global* *E147* *E148*
49+
*:g* *:global* *E148*
5050
:[range]g[lobal]/{pattern}/[cmd]
5151
Execute the Ex command [cmd] (default ":p") on the
5252
lines within [range] where {pattern} matches.
@@ -79,8 +79,15 @@ The default for [range] is the whole buffer (1,$). Use "CTRL-C" to interrupt
7979
the command. If an error message is given for a line, the command for that
8080
line is aborted and the global command continues with the next marked or
8181
unmarked line.
82-
83-
To repeat a non-Ex command, you can use the ":normal" command: >
82+
*E147*
83+
When the command is used recursively, it only works on one line. Giving a
84+
range is then not allowed. This is useful to find all lines that match a
85+
pattern and do not match another pattern: >
86+
:g/found/v/notfound/{cmd}
87+
This first finds all lines containing "found", but only executes {cmd} when
88+
there is no match for "notfound".
89+
90+
To execute a non-Ex command, you can use the `:normal` command: >
8491
:g/pat/normal {commands}
8592
Make sure that {commands} ends with a whole command, otherwise Vim will wait
8693
for you to type the rest of the command for each match. The screen will not

runtime/doc/tags

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4574,6 +4574,8 @@ E940 eval.txt /*E940*
45744574
E941 eval.txt /*E941*
45754575
E942 eval.txt /*E942*
45764576
E943 message.txt /*E943*
4577+
E944 pattern.txt /*E944*
4578+
E945 pattern.txt /*E945*
45774579
E95 message.txt /*E95*
45784580
E96 diff.txt /*E96*
45794581
E97 diff.txt /*E97*

runtime/doc/todo.txt

Lines changed: 8 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.0. Last change: 2017 Jun 05
1+
*todo.txt* For Vim version 8.0. Last change: 2017 Jun 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -113,6 +113,7 @@ With foldmethod=syntax and nofoldenable comment highlighting isn't removed.
113113
(Marcin Szewczyk, 2017 Apr 26)
114114

115115
ml_get error when using a Python. (Yggdroot, 2017 Jun 1, #1737)
116+
Lemonboy can reproduce (2017 Jun 5)
116117

117118
ml_get errors with buggy script. (Dominique, 2017 Apr 30)
118119

@@ -144,15 +145,9 @@ Openhab syntax file (mueller, #1678)
144145

145146
Use gvimext.dll from the nightly build? (Issue #249)
146147

147-
Patch to remove HAVE_GTK_MULTIHEAD-relevant code. (Kazunobu Kuriyama, 2017 May
148-
5) Update May 11
149-
150148
'synmaxcol' works with bytes instead of screen cells. (Llandon, 2017 May 31,
151149
#1736)
152150

153-
Patch to pass quickfix list index to functions. (Yegappan Lakshmanan, 2017 May
154-
31)
155-
156151
Problem with using :cd when remotely editing a file. (Gerd Wachsmuth, 2017 May
157152
8, #1690)
158153

@@ -168,35 +163,15 @@ manager. Problem with Motif?
168163
Bogus characters inserted when triggering indent while changing text.
169164
(Vitor Antunes, 2016 Nov 22, #1269)
170165

171-
Patch to have ":stag" respect 'switchbuf'. (Ingo Karkat, 2017 May 5, #1681)
172-
173-
Patch to improve building with MSVC. (Leonardo Manera, #1747)
174-
175-
Wrong selection of quoted text (Guraga, #1687)
176-
Patch to fix selection of quoted text. (Christian Brabandt, 2017 May 7, #1687)
177-
178-
Patch to use separate error message for regex range. (Itchyny, Ken Hamada,
179-
2017 May 16)
180-
181166
Segmentation fault with complete(). (Lifepillar, 2017 Apr 29, #1668)
182167
Check for "pat" to be NULL in search_for_exact_line()?
183168
How did it get NULL? Comment by Christian, Apr 30.
184169

185170
Is it possible to keep the complete menu open when calling complete()?
186171
(Prabir Shrestha, 2017 May 19, #1713)
187172

188-
Calling may_req_ambiguous_char_width() and may_req_bg_color() only after
189-
executing command line commands may not work properly.
190-
(Rastislav Barlink, 2017 May 18)
191-
Set "starting" to 0 earlier, and move the may_req calls above exe_commands()?
192-
No, that's a problem with using "-c quit", not running Vim interactive.
193-
194173
Memory leak in test97? The string is actually freed. Weird.
195174

196-
Patch for shellescape(). (Christian Brabandt, 2017 Apr 20, #1590)
197-
198-
Patch for flickering redraw. (Hirohito Higashi, 2017 Apr 23, #1637)
199-
200175
New value "uselast" for 'switchbuf'. (Lemonboy, 2017 Apr 23, #1652)
201176

202177
Add a toolbar in the terminal. Can be global, above all windows, or specific
@@ -212,18 +187,6 @@ Perhaps simpler: actually delete the mappings. Use maplist() to list matching
212187
mappings (with a lhs prefix, like maparg()), mapdelete() to delete,
213188
maprestore() to restore (using the output of maplist().
214189

215-
Patch to support chinese wordcount in utf-8. (Rain, 2017 May 24, #1722)
216-
Or not?
217-
218-
"gn" selects one character instead of the searched text. (keyboardfire, #1683)
219-
Patch by Christian, 2017 May 7.
220-
221-
Wrong memory access using p_fdm, found in patch to add tests for diff mode
222-
(#1658) (Dominique Pelle, 2017 May 6)
223-
224-
Patch to improve test coverage for diff mode. (Dominique Pelle, 2017 May 11,
225-
#1685)
226-
227190
Add an argument to :mkvimrc (or add aother command) to skip mappings from
228191
plugins (source is a Vim script). No need to put these in a .vimrc, they will
229192
be defined when the plugin is loaded.
@@ -249,6 +212,7 @@ Also get E749 on exit.
249212
Another example in #1309
250213

251214
Patch to change all use of &sw to shiftwidth(). (Tyru, 2017 Feb 19)
215+
Takuya Fujiwara
252216
Wait until maintainers integrate it.
253217

254218
When deleting a mark or register, leave a tombstone, so that it's also deleted
@@ -358,6 +322,8 @@ Patch for wrong cursor position on wrapped line, involving breakindent.
358322
(Ozaki Kiichi, 2016 Nov 25)
359323
Does this also fix #1408 ?
360324

325+
Patch to add "module" to quickfix entries. (Coot, 2017 Jun 8, #1757)
326+
361327
Patch for 'cursorlinenr' option. (Ozaki Kiichi, 2016 Nov 30)
362328

363329
When 'completeopt' has "noselect" does not insert a newline. (Lifepillar, 2017
@@ -500,9 +466,6 @@ This does not work: :set cscopequickfix=a-
500466

501467
Possibly wrong value for seq_cur. (Florent Fayolle, 2016 May 15, #806)
502468

503-
Patch to add separate highlighting for quickfix current line.
504-
(anishsane, 2016 Sep 16, #1080)
505-
506469
Filetype plugin for awk. (Doug Kearns, 2016 Sep 5)
507470

508471
Patch to improve map documentation. Issue #799.
@@ -539,6 +502,9 @@ Because of using the initial buffer? (Dun Peal, 2016 May 12)
539502
Patch to add the :bvimgrep command. (Christian Brabandt, 2014 Nov 12)
540503
Updated 2016 Jun 10, #858 Update 2017 Mar 28: use <buffer>
541504

505+
Patch to fix that an encoding conversion failure results in a corrupted or
506+
empty file. (Christian Brabandt, #1765, https://github.com/chrisbra/vim-mq-patches/blob/master/conversion_error)
507+
542508
Add redrawtabline command. (Naruhiko Nishino, 2016 Jun 11)
543509

544510
Neovim patch for utfc_ptr2char_len() https://github.com/neovim/neovim/pull/4574
@@ -1032,8 +998,6 @@ Patch to handle integer overflow. (Aaron Burrow, 2013 Dec 12)
1032998
Patch to add "ntab" item in 'listchars' to repeat first character. (Nathaniel
1033999
Braun, pragm, 2013 Oct 13) A better solution 2014 Mar 5.
10341000

1035-
/[b-a] gives error E16, should probably be E769.
1036-
10371001
7 Windows XP: When using "ClearType" for text smoothing, a column of yellow
10381002
pixels remains when typing spaces in front of a "D" ('guifont' set to
10391003
"lucida_console:h8").

runtime/filetype.vim

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim support file to detect file types
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2017 Jun 04
4+
" Last Change: 2017 Jun 12
55

66
" Listen very carefully, I will say this only once
77
if exists("did_load_filetypes")
@@ -2253,6 +2253,8 @@ func! s:FTtex()
22532253
let format = tolower(matchstr(firstline, '\a\+'))
22542254
let format = substitute(format, 'pdf', '', '')
22552255
if format == 'tex'
2256+
let format = 'latex'
2257+
elseif format == 'plaintex'
22562258
let format = 'plain'
22572259
endif
22582260
else

0 commit comments

Comments
 (0)