Skip to content

Commit 2c43cd6

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 98fed9d + 8617b40 commit 2c43cd6

47 files changed

Lines changed: 793 additions & 310 deletions

Some content is hidden

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

runtime/autoload/dist/ft.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ endfunc
126126
" This function checks if one of the first ten lines start with a '@'. In
127127
" that case it is probably a change file.
128128
" If the first line starts with # or ! it's probably a ch file.
129-
" If a line has "main", "include", "//" ir "/*" it's probably ch.
129+
" If a line has "main", "include", "//" or "/*" it's probably ch.
130130
" Otherwise CHILL is assumed.
131131
func dist#ft#FTchange()
132132
let lnum = 1

runtime/doc/change.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ the |substitute()| function with the following exceptions:
850850
- magic is always set without regard to 'magic'.
851851
- A ~ inserts a tilde literally.
852852
- <CR> and \r inserts a carriage-return (CTRL-M).
853-
- \<CR> does not have a special meaning. it's just one of \x.
853+
- \<CR> does not have a special meaning. It's just one of \x.
854854

855855
Examples: >
856856
:s/a\|b/xxx\0xxx/g modifies "a b" to "xxxaxxx xxxbxxx"

runtime/doc/cmdline.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,6 @@ that see the '"' as part of their argument:
541541
:autocmd
542542
:bufdo
543543
:cexpr (and the like)
544-
:call
545544
:cdo (and the like)
546545
:command
547546
:cscope (and the like)

runtime/doc/eval.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,10 @@ function() or funcref(). When calling the function the Dictionary and/or
180180
arguments will be passed to the function. Example: >
181181
182182
let Cb = function('Callback', ['foo'], myDict)
183-
call Cb()
183+
call Cb('bar')
184184
185185
This will invoke the function as if using: >
186-
call myDict.Callback('foo')
186+
call myDict.Callback('foo', 'bar')
187187
188188
This is very useful when passing a function around, e.g. in the arguments of
189189
|ch_open()|.
@@ -4614,7 +4614,6 @@ getcurpos() Get the position of the cursor. This is like getpos('.'), but
46144614
getcwd([{winnr} [, {tabnr}]])
46154615
The result is a String, which is the name of the current
46164616
working directory.
4617-
Without arguments, for the current window.
46184617

46194618
With {winnr} return the local current directory of this window
46204619
in the current tab page. {winnr} can be the window number or
@@ -9128,7 +9127,7 @@ win_getid([{win} [, {tab}]]) *win_getid()*
91289127
Get the |window-ID| for the specified window.
91299128
When {win} is missing use the current window.
91309129
With {win} this is the window number. The top window has
9131-
number 1. Use `win_getid(winnr())` for the current window.
9130+
number 1.
91329131
Without {tab} use the current tab, otherwise the tab with
91339132
number {tab}. The first tab has number one.
91349133
Return zero if the window cannot be found.
@@ -9679,9 +9678,13 @@ See |:verbose-cmd| for more information.
96799678
deleted if there are no more references to it.
96809679
*E127* *E122*
96819680
When a function by this name already exists and [!] is
9682-
not used an error message is given. When [!] is used,
9683-
an existing function is silently replaced. Unless it
9684-
is currently being executed, that is an error.
9681+
not used an error message is given. There is one
9682+
exception: When sourcing a script again, a function
9683+
that was previously defined in that script will be
9684+
silently replaced.
9685+
When [!] is used, an existing function is silently
9686+
replaced. Unless it is currently being executed, that
9687+
is an error.
96859688
NOTE: Use ! wisely. If used without care it can cause
96869689
an existing function to be replaced unexpectedly,
96879690
which is hard to debug.

runtime/doc/indent.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,9 @@ The basics for using flexible indenting are explained in section |30.3| of the
588588
user manual.
589589

590590
If you want to write your own indent file, it must set the 'indentexpr'
591-
option. Setting the 'indentkeys' option is often useful. See the
592-
$VIMRUNTIME/indent directory for examples.
591+
option. Setting the 'indentkeys' option is often useful.
592+
See the $VIMRUNTIME/indent/README.txt file for hints.
593+
See the $VIMRUNTIME/indent directory for examples.
593594

594595

595596
REMARKS ABOUT SPECIFIC INDENT FILES ~

runtime/doc/options.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,10 +1651,10 @@ A jump table for the options with a short description can be found at |Q_op|.
16511651
area extended, Vim tries to become the owner of the
16521652
windowing system's global selection or put the
16531653
selected text on the clipboard used by the selection
1654-
register "*. See |guioptions_a| and |quotestar| for
1655-
details. When the GUI is active, the 'a' flag in
1656-
'guioptions' is used, when the GUI is not active, this
1657-
"autoselect" flag is used.
1654+
register "*. See |'go-a'| and |quotestar| for details.
1655+
When the GUI is active, the 'a' flag in 'guioptions'
1656+
is used, when the GUI is not active, this "autoselect"
1657+
flag is used.
16581658
Also applies to the modeless selection.
16591659

16601660
*clipboard-autoselectplus*
@@ -4037,7 +4037,7 @@ A jump table for the options with a short description can be found at |Q_op|.
40374037
terminal to list the command output.
40384038
The terminal window will be positioned at the bottom, and grow
40394039
upwards as needed.
4040-
*guioptions_a* *'go-a'*
4040+
*'go-a'*
40414041
'a' Autoselect: If present, then whenever VISUAL mode is started,
40424042
or the Visual area extended, Vim tries to become the owner of
40434043
the windowing system's global selection. This means that the
@@ -8289,8 +8289,8 @@ A jump table for the options with a short description can be found at |Q_op|.
82898289
non-keyword characters (white space is preferred). Maximum line
82908290
length is 510 bytes.
82918291
To obtain a file to be used here, check out this ftp site:
8292-
[Sorry this link doesn't work anymore, do you know the right one?]
8293-
ftp://ftp.ox.ac.uk/pub/wordlists/ First get the README file.
8292+
ftp://ftp.cerias.purdue.edu/pub/dict/wordlists/ First get the README
8293+
file.
82948294
To include a comma in a file name precede it with a backslash. Spaces
82958295
after a comma are ignored, otherwise spaces are included in the file
82968296
name. See |option-backslash| about using backslashes.

runtime/doc/quickfix.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ commands can be combined to create a NewGrep command: >
898898
'smartcase' is not used.
899899
If {pattern} is empty (e.g. // is specified), the last
900900
used search pattern is used. |last-pattern|
901-
901+
:{count}vim[grep] ...
902902
When a number is put before the command this is used
903903
as the maximum number of matches to find. Use
904904
":1vimgrep pattern file" to find only the first.

runtime/doc/syntax.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -939,6 +939,9 @@ to the respective variable. Example: >
939939
To disable them use ":unlet". Example: >
940940
:unlet c_comment_strings
941941
942+
An alternative is to switch to the C++ highlighting: >
943+
:set filetype=cpp
944+
942945
Variable Highlight ~
943946
*c_gnu* GNU gcc specific items
944947
*c_comment_strings* strings and numbers inside a comment

runtime/doc/tags

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6875,7 +6875,6 @@ gui_x11.txt gui_x11.txt /*gui_x11.txt*
68756875
guifontwide_gtk2 options.txt /*guifontwide_gtk2*
68766876
guifontwide_macvim options.txt /*guifontwide_macvim*
68776877
guifontwide_win_mbyte options.txt /*guifontwide_win_mbyte*
6878-
guioptions_a options.txt /*guioptions_a*
68796878
guu change.txt /*guu*
68806879
gv visual.txt /*gv*
68816880
gview starting.txt /*gview*

runtime/doc/todo.txt

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ browser use: https://github.com/vim/vim/issues/1234
3838
*known-bugs*
3939
-------------------- Known bugs and current work -----------------------
4040

41-
Using freed memory in quickfix. (Dominique Pelle, Yegappan is looking into a
42-
fix).
43-
4441
'incsearch' with :s: (#3321)
4542
- :s/foo using CTRL-G moves to another line, should not happen, or use the
4643
correct line (it uses the last but one line) (Lifepillar, Aug 18, #3345)
@@ -56,10 +53,13 @@ Prompt buffer:
5653

5754
Terminal debugger:
5855
- Make prompt-buffer variant work better.
56+
- Add option to not open the program window. It's not used when attaching to
57+
an already running program. (M. Kelly)
5958
- When only gdb window exists, on "quit" edit another buffer.
6059
- Termdebug does not work when Vim was build with mzscheme: gdb hangs just
6160
after "run". Everything else works, including communication channel. Not
6261
initializing mzscheme avoid the problem, thus it's not some #ifdef.
62+
- Add support for lldb? #3565
6363

6464
Terminal emulator window:
6565
- GUI: When using ":set go+=!" a system() call causes the hit-enter prompt.
@@ -121,6 +121,11 @@ terminal.c and then CTRL-N twice.
121121
Should do current file first and not split it up when more results are found.
122122
(Also #1890)
123123

124+
Internal diff doesn't handle binary file like external diff does. (Mike
125+
Williams, 2018 Oct 30)
126+
127+
Problem with :tlmenu: Detach item added with all modes? Issue #3563.
128+
124129
C syntax: {} inside () causes following {} to be highlighted as error.
125130
(Michalis Giannakidis, 2006 Jun 1)
126131

@@ -140,7 +145,7 @@ Pasting foo} causes Vim to behave weird. (John Little, 2018 Jun 17)
140145
Related to bracketed paste. I cannot reproduce it.
141146

142147
":mksession" cannot handle a very long 'runtimepath'. (Timothy Madden, 21 Sep
143-
2018, #3466) Christian is working on a patch.
148+
2018, #3466) Patch from Christian, 2018 Oct 30 (with comments).
144149

145150
Patch in pull request #2967: Allow white space in sign text. (Ben Jackson)
146151
Test fails in AppVeyor.
@@ -155,9 +160,6 @@ ml_get error: (Israel Chauca Fuentes, 2018 Oct 17, #3550).
155160
Patch to convert temp file name. (Yasuhiro Matsumoto, #3520)
156161
Not ready to include yet.
157162

158-
Removing flags from 'cpoptions' breaks the Winbar buttons in termdebug.
159-
(Dominique Pelle, 2018 Jul 16)
160-
161163
Problem with two buffers with the same name a/b, if it didn't exist before and
162164
is created outside of Vim. (dskloetg, 2018 Jul 16, #3219)
163165

@@ -171,6 +173,12 @@ unified diff (list of lines).
171173
Patch to implement 'diffref' option. (#3535)
172174
Easier to use a 'diffmaster' option, is the extra complexity needed?
173175

176+
Patch to fix that bracketed paste remains after Vim exits. (2018 Oct 30, #3579)
177+
178+
cursorline highlighting not removed after yanking in Visual mode.
179+
(Matéo Zanibelli, 2018 Oct 30, #3578)
180+
Patch by Christian, Oct 30.
181+
174182
Memory leaks in test_channel? (or is it because of fork())
175183
Using uninitialized value in test_crypt.
176184
Memory leak in test_terminal:
@@ -189,6 +197,9 @@ gethostbyname() is old, use getaddrinfo() if available. (#3227)
189197
matchaddpos() gets slow with many matches. Proposal by Rick Howe, 2018 Jul
190198
19.
191199

200+
Sourceforge Vim pages still have content, redirect from empty page.
201+
Check for PHP errors. (Wayne Davison, 2018 Oct 26)
202+
192203
Patch to support ":tag <tagkind> <tagname>". (emmrk, 2018 May 7, #2871)
193204
Use something like ":tag {kind}/{tagname}".
194205
Not ready to include.
@@ -213,7 +224,7 @@ Only output t_Cs when t_Ce is also set. do not use Cs and Ce termcap entries.
213224
Add t_cS and t_cR for cursor color select and reset. Use Cs and Cr terminfo
214225
values.
215226

216-
Furthere xdiff changes:
227+
Further xdiff changes:
217228
- More options, e.g. different kind of whitespace diff.
218229
- when editing text, update the surrounding diff blocks.
219230
- omit diff.exe from distribution
@@ -222,19 +233,11 @@ Furthere xdiff changes:
222233

223234
Difference between two regexp engines: #3373
224235

225-
Patch to handle missin glibwinpthread-1.dll. (Ken Takata, 2018 Sep 23, #2827)
226-
227-
Patch to add arguments to argc() and argv(). (Yegappan Lakshmanan, 2016 Jan
228-
24, #832) Also need a way to get the global arg list? Update later on Jan 24
229-
Update Mar 5. Update Apr 7. Update Jun 5.
230-
231236
When the last line wraps, selecting with the mouse below that line only
232237
includes the first screen line. (2018 Aug 23, #3368)
233238

234-
Add `:filter` support for various commands (Marcin Szamotulski, 2017 Nov 12
235-
#2322) Patch now in #2856.
236-
237239
Refactored HTML indent file. (Michael Lee, #1821)
240+
Ask to write a test first.
238241

239242
Patch to add getregpoint() and setreg() with an option to set "".
240243
(Andy Massimino, 2018 Aug 24, #3370)
@@ -261,6 +264,9 @@ characters. (#3246)
261264

262265
'foldtext' is evaluated too often. (Daniel Hahler, #2773)
263266

267+
Add Native language protocol server (LSP) support. (Yegappan Lakshmanan, 2018
268+
Oct 28)
269+
264270
ml_get error when using a Python script. (Yggdroot, 2017 Jun 1, #1737)
265271
Lemonboy can reproduce (2017 Jun 5)
266272
Also reproduced by Benjamin Doherty, 2018 Oct 4.
@@ -276,6 +282,11 @@ Tests failing for "make testgui" with GTK:
276282
- Test_setbufvar_options()
277283
- Test_exit_callback_interval()
278284

285+
Get a "No Name" buffer when 'hidden' is set and opening a new window from the
286+
quickfix list. (bfrg, 2018 Jan 22, #2574)
287+
Tracked down by Jason Franklin, 2018 Oct 30.
288+
Suggested patch by Yegappan, Nov 1.
289+
279290
When using CTRL-W CR in the quickfix window, the jumplist in the opened window
280291
is cleared, to avoid going back to the list of errors buffer (would have two
281292
windows with it). Can we just remove the jump list entries for the quickfix
@@ -298,16 +309,16 @@ balloonexpr() on MS-Windows GUI doesn't handle accented chars? (nivaemail,
298309
2018 Sep 14)
299310

300311
Add v:motion_force. (Kana Natsuno, 2008 Dec 6)
301-
Maybe call it v:motiontype. Update in #3490)
302-
Alternaitve: add the force flag to mode(), after "no".
312+
Maybe call it v:motiontype. Update in #3490.
313+
Alternative: add the force flag to mode(), after "no".
303314

304315
Try out background make plugin:
305316
https://github.com/AndrewVos/vim-make-background
306317
or asyncmake:
307318
https://github.com/yegappan/asyncmake
308319

309320
Add a ModeChanged autocommand that has an argument indicating the old and new
310-
mode. Also used for switching Terminal mode.
321+
mode, as what's returned from mode(). Also used for switching Terminal mode.
311322

312323
Add an option with file patterns, to be used when unloading a buffer: If there
313324
is a match, remove entries for the buffer from marks, jumplist, etc. To be
@@ -372,7 +383,7 @@ How to test that it works well for all Vim users?
372383

373384
Alternative manpager.vim. (Enno, 2018 Jan 5, #2529)
374385

375-
Delete all the speficic stuff for the Borland compiler? (#3374)
386+
Delete all the specific stuff for the Borland compiler? (#3374)
376387
Patch in #3377 (Thomas Dziedzic)
377388

378389
With 'foldmethod' "indent" and appending an empty line, what follows isn't
@@ -451,6 +462,10 @@ option_save({list}) *option_save()*
451462
values are handled and the script ID is restored, so that
452463
`:verbose set` will show where the option was originally set,
453464
not where it was restored.
465+
Alternatively: save and restore ALL options. Implementation needs to use
466+
copy-on-write. Return an ID from option_save(), when
467+
option_restore(ID) is called give an error if another option_save()
468+
was called in the mean time, they must be balanced.
454469

455470
"gvim --remote" from a directory with non-word characters changes the current
456471
directory (Paulo Marcel Coelho Arabic, 2017 Oct 30, #2266)
@@ -474,9 +489,6 @@ Add script number to profile? (#3330 breaks tests).
474489
A function defined locally and lambda's are not easily recognized.
475490
Mention where they were defined somewhere.
476491

477-
Get a "No Name" buffer when 'hidden' is set and opening a new window from the
478-
quickfix list. (bfrg, 2018 Jan 22, #2574)
479-
480492
CTRL-X on zero gets stuck on 0xfffffffffffffffe. (Hengyang Zhao, #2746)
481493

482494
Invalid range error when using BufWinLeave for closing terminal.
@@ -531,7 +543,7 @@ MS-Windows: buffer completion doesn't work when using backslash (or slash)
531543
for a path separator. (xtal8, #2201)
532544

533545
Would be nice for insert mode completion to highlight the text that was added
534-
(and may change when picking another compltion).
546+
(and may change when picking another completion).
535547

536548
Test runtime files.
537549
Start with filetype detection: testdir/test_filetype.vim
@@ -3695,6 +3707,7 @@ Most interesting new features to be added when all bugs have been fixed:
36953707
Alternative: Make a function for Ex commands: cmd_edit().
36963708
- Add COLUMN NUMBERS to ":" commands ":line1,line2[col1,col2]cmd". Block
36973709
can be selected with CTRL-V. Allow '$' (end of line) for col2.
3710+
(issue #3292)
36983711
- ECLIPSE plugin. Problem is: the interface is very complicated. Need to
36993712
implement part in Java and then connect to Vim. Some hints from Alexandru
37003713
Roman, 2004 Dec 15. Should then also work with Oracle Jdeveloper, see JSR

0 commit comments

Comments
 (0)