Skip to content

Commit a454795

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 6ff781f + a87b72c commit a454795

102 files changed

Lines changed: 10450 additions & 1823 deletions

Some content is hidden

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

Filelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@ LANG_SRC = \
907907
src/po/check.vim \
908908
src/po/cleanup.vim \
909909
src/po/Makefile \
910+
src/po/Make_all.mak \
910911
src/po/Make_cyg.mak \
911912
src/po/Make_ming.mak \
912913
src/po/Make_mvc.mak \

runtime/doc/autocmd.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
VIM REFERENCE MANUAL by Bram Moolenaar
55

66

7-
Automatic commands *autocommand*
7+
Automatic commands *autocommand* *autocommands*
88

99
For a basic explanation, see section |40.3| in the user manual.
1010

runtime/doc/change.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -987,6 +987,11 @@ This replaces each 'E' character with a euro sign. Read more in |<Char->|.
987987
this (that's a good habit anyway).
988988
`:retab!` may also change a sequence of spaces by
989989
<Tab> characters, which can mess up a printf().
990+
If the |+vartabs| feature is enabled then a list of
991+
tab widths separated by commas may be used in place of
992+
a single tabstop. Each value in the list represents
993+
the width of one tabstop, except the final value which
994+
applies to all following tabstops.
990995
{not in Vi}
991996

992997
*retab-example*

runtime/doc/eval.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7053,6 +7053,7 @@ searchpair({start}, {middle}, {end} [, {flags} [, {skip}
70537053
When evaluating {skip} causes an error the search is aborted
70547054
and -1 returned.
70557055
{skip} can be a string, a lambda, a funcref or a partial.
7056+
Anything else makes the function fail.
70567057

70577058
For {stopline} and {timeout} see |search()|.
70587059

@@ -8694,6 +8695,8 @@ test_override({name}, {val}) *test_override()*
86948695
redraw disable the redrawing() function
86958696
char_avail disable the char_avail() function
86968697
starting reset the "starting" variable, see below
8698+
nfa_fail makes the NFA regexp engine fail to force a
8699+
fallback to the old engine
86978700
ALL clear all overrides ({val} is not used)
86988701

86998702
"starting" is to be used when a test should behave like

runtime/doc/options.txt

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7333,6 +7333,10 @@ A jump table for the options with a short description can be found at |Q_op|.
73337333
set.
73347334
NOTE: This option is set to 0 when 'compatible' is set.
73357335

7336+
If Vim is compiled with the |+vartabs| feature then the value of
7337+
'softtabstop' will be ignored if |'varsofttabstop'| is set to
7338+
anything other than an empty string.
7339+
73367340
*'spell'* *'nospell'*
73377341
'spell' boolean (default off)
73387342
local to window
@@ -7884,6 +7888,10 @@ A jump table for the options with a short description can be found at |Q_op|.
78847888
though. Otherwise aligned comments will be wrong when 'tabstop' is
78857889
changed.
78867890

7891+
If Vim is compiled with the |+vartabs| feature then the value of
7892+
'tabstop' will be ignored if |'vartabstop'| is set to anything other
7893+
than an empty string.
7894+
78877895
*'tagbsearch'* *'tbs'* *'notagbsearch'* *'notbs'*
78887896
'tagbsearch' 'tbs' boolean (default on)
78897897
global
@@ -8643,6 +8651,44 @@ A jump table for the options with a short description can be found at |Q_op|.
86438651
written to disk (see |crash-recovery|). Also used for the
86448652
|CursorHold| autocommand event.
86458653

8654+
*'varsofttabstop'* *'vsts'*
8655+
'varsofttabstop' 'vsts' string (default "")
8656+
local to buffer
8657+
{only available when compiled with the |+vartabs|
8658+
feature}
8659+
{not in Vi}
8660+
A list of the number of spaces that a <Tab> counts for while editing,
8661+
such as inserting a <Tab> or using <BS>. It "feels" like variable-
8662+
width <Tab>s are being inserted, while in fact a mixture of spaces
8663+
and <Tab>s is used. Tab widths are separated with commas, with the
8664+
final value applying to all subsequent tabs.
8665+
8666+
For example, when editing assembly language files where statements
8667+
start in the 8th column and comments in the 40th, it may be useful
8668+
to use the following: >
8669+
:set varsofttabstop=8,32,8
8670+
< This will set soft tabstops at the 8th and 40th columns, and at every
8671+
8th column thereafter.
8672+
8673+
Note that the value of |'softtabstop'| will be ignored while
8674+
'varsofttabstop' is set.
8675+
8676+
*'vartabstop'* *'vts'*
8677+
'vartabstop' 'vts' string (default "")
8678+
local to buffer
8679+
{only available when compiled with the |+vartabs|
8680+
feature}
8681+
{not in Vi}
8682+
A list of the number of spaces that a <Tab> in the file counts for,
8683+
separated by commas. Each value corresponds to one tab, with the
8684+
final value applying to all subsequent tabs. For example: >
8685+
:set vartabstop=4,20,10,8
8686+
< This will make the first tab 4 spaces wide, the second 20 spaces,
8687+
the third 10 spaces, and all following tabs 8 spaces.
8688+
8689+
Note that the value of |'tabstop'| will be ignored while 'vartabstop'
8690+
is set.
8691+
86468692
*'verbose'* *'vbs'*
86478693
'verbose' 'vbs' number (default 0)
86488694
global

runtime/doc/quickref.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,8 @@ Short explanation of each option: *option-list*
965965
'undoreload' 'ur' max nr of lines to save for undo on a buffer reload
966966
'updatecount' 'uc' after this many characters flush swap file
967967
'updatetime' 'ut' after this many milliseconds flush swap file
968+
'varsofttabstop' 'vsts' a list of number of spaces when typing <Tab>
969+
'vartabstop' 'vts' a list of number of spaces for <Tab>s
968970
'verbose' 'vbs' give informative messages
969971
'verbosefile' 'vfile' file to write messages in
970972
'viewdir' 'vdir' directory where to store files with :mkview

runtime/doc/remote.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The following command line arguments are available:
6464
--servername {name} Become the server {name}. When used together
6565
with one of the --remote commands: connect to
6666
server {name} instead of the default (see
67-
below).
67+
below). The name used will be uppercase.
6868
*--remote-send*
6969
--remote-send {keys} Send {keys} to server and exit. The {keys}
7070
are not mapped. Special key names are

runtime/doc/tags

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1164,6 +1164,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
11641164
'updatetime' options.txt /*'updatetime'*
11651165
'ur' options.txt /*'ur'*
11661166
'ut' options.txt /*'ut'*
1167+
'varsofttabstop' options.txt /*'varsofttabstop'*
1168+
'vartabstop' options.txt /*'vartabstop'*
11671169
'vb' options.txt /*'vb'*
11681170
'vbs' options.txt /*'vbs'*
11691171
'vdir' options.txt /*'vdir'*
@@ -1180,6 +1182,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
11801182
'virtualedit' options.txt /*'virtualedit'*
11811183
'visualbell' options.txt /*'visualbell'*
11821184
'vop' options.txt /*'vop'*
1185+
'vsts' options.txt /*'vsts'*
1186+
'vts' options.txt /*'vts'*
11831187
'w1200' vi_diff.txt /*'w1200'*
11841188
'w300' vi_diff.txt /*'w300'*
11851189
'w9600' vi_diff.txt /*'w9600'*
@@ -1377,6 +1381,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
13771381
+transparency various.txt /*+transparency*
13781382
+unix eval.txt /*+unix*
13791383
+user_commands various.txt /*+user_commands*
1384+
+vartabs various.txt /*+vartabs*
13801385
+vertsplit various.txt /*+vertsplit*
13811386
+viminfo various.txt /*+viminfo*
13821387
+virtualedit various.txt /*+virtualedit*

runtime/doc/todo.txt

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -43,32 +43,19 @@ Prompt buffer:
4343
- delay next prompt until plugin gives OK?
4444

4545
Terminal debugger:
46-
- Using terminal window: after "cont" in gdb window CTRL-C interrupts, but
47-
after :Continue it does not. Mode of UI is changed? :Stop does work.
48-
- patch from Christian to handle changing 'background'
49-
and a patch to show breakpoint nr in sign. (June 14)
5046
- Make prompt-buffer variant work better.
47+
- When only gdb window exists, on "quit" edit another buffer.
5148
- Termdebug does not work when Vim was build with mzscheme: gdb hangs just
5249
after "run". Everything else works, including communication channel. Not
5350
initializing mzscheme avoid the problem, thus it's not some #ifdef.
54-
- Show breakpoint number in the sign? (Uri Moszkowicz, 2018 Jun 13, #3007)
55-
- Allow for users to create their own gdb mappings. Perhaps by making the gdb
56-
buffer global? (Uri Moszkowicz, #3012) Or with a function to send a command
57-
to gdb.
5851

5952
Terminal emulator window:
6053
- With a vertical split only one window is updated. (Linwei, 2018 Jun 2,
6154
#2977)
62-
- When typing : at the more prompt, instead of entering a new Vim command, the
63-
: is inserted in the terminal window. Should skip terminal_loop here.
64-
()
6555
- When pasting should call vterm_keyboard_start_paste(), e.g. when using
6656
K_MIDDLEMOUSE, calling insert_reg().
6757
- Users expect parsing the :term argument like a shell does, also support
6858
single quotes. E.g. with: :term grep 'alice says "hello"' (#1999)
69-
- When running a shell in a terminal to run Vim tests, CTRL-W : the command
70-
line keeps getting cleard. Doing the same in another window is OK. (Jason
71-
Franklin, 2018 Jun 17)
7259
- How to access selection in Terminal running a shell? (damnskippy, 2018 May
7360
27, #29620 When terminal doesn't use the mouse, use modeless selection.
7461
- Win32: Redirecting input does not work, half of Test_terminal_redir_file()
@@ -102,26 +89,11 @@ Errors found with random data:
10289
More warnings from static analysis:
10390
https://lgtm.com/projects/g/vim/vim/alerts/?mode=list
10491

105-
Patch to make "is" and "as" work better. (Jason Franklin, 2018 May 19)
106-
107-
Patch to add tests for user and language completion. (Dominique Pelle, 2018
108-
Jun 2, #2978) typo wk -> we
109-
Patch to support user name completion on MS-Windows. (Yasuhiro Matsumoto, 2012
110-
Aug 16)
111-
112-
Patch to add tests for libcall() and libcallnr(). (Dominique Pelle, #2982)
113-
114-
Patch to fix that v:shell_error is always zero when using terminal for shell
115-
command. (Ichizok, 2018 Jun 8, #2994)
116-
117-
Patch to make test for terminal out&error more reliable. (Ichizok, 2018 Jun 8,
118-
#2991)
119-
12092
Patch to fix duplicate entry in tagfiles() and add a test. (Dominique Pelle,
12193
#2979)
12294

12395
Pasting foo} causes Vim to behave weird. (John Little, 2018 Jun 17)
124-
Related to bracketed paste.
96+
Related to bracketed paste. I cannot reproduce it.
12597

12698
Using ":file" in quickfix window during an autocommand doesn't work.
12799
(Jason Franklin, 2018 May 23) Allow for using it when there is no argument.
@@ -134,6 +106,15 @@ Patch for xterm and vt320 builtin termcap. (Kouichi Iwamoto, 2018 May 31,
134106
Patch to add more testing for :cd command. (Dominique Pelle, 2018 May 30,
135107
#2972)
136108

109+
Whenever the file name is "~" then expand('%:p') returns $HOME. (Aidan
110+
Shafran, 2018 Jun 23, #3072)
111+
112+
Patch to set w_curswant when setting the cursor in language interfaces.
113+
(David Hotham, 2018 Jun 22, #3060)
114+
115+
Patch to make CTRL-W <CR> work properly in a quickfix window. (Jason Franklin,
116+
2018 May 30)
117+
137118
Patch to make mode() return something different for Normal mode when coming
138119
from Insert mode with CTRL-O. (#3000)
139120

@@ -158,6 +139,13 @@ Tests failing for "make testgui" with GTK:
158139
- Test_setbufvar_options()
159140
- Test_exit_callback_interval()
160141

142+
Patch to stack and pop the window title and icon. (IWAMOTO Kouichi, 2018 Jun
143+
22, #3059)
144+
8 For xterm need to open a connection to the X server to get the window
145+
title, which can be slow. Can also get the title with "<Esc>[21t", no
146+
need to use X11 calls. This returns "<Esc>]l{title}<Esc>\".
147+
Using title stack probably works better.
148+
161149
Make balloon_show() work outside of 'balloonexpr'? Users expect it to work:
162150
#2948. (related to #1512?)
163151
On Win32 it stops showing, because showState is already ShS_SHOWING.
@@ -198,9 +186,6 @@ deleting autocmds, not when adding them.
198186
Quickfix window height is not kept with a vertical split. (Lifepillar, 2018
199187
Jun 10, #2998)
200188

201-
Patch for variable tabstops. On github (Christian Brabandt, 2014 May 15)
202-
Update 2018 March 12, #2711
203-
204189
Improve the installer for MS-Windows. There are a few alternatives:
205190
- Add silent install option. (Shane Lee, #751)
206191
- Installer from Cream (Steve Hall).
@@ -321,6 +306,8 @@ highlighted. (van-de-bugger, 2018 Jan 23, #2576)
321306
Patch to parse ":line" in tags file and use it for search. (Daniel Hahler,
322307
#2546) Fixes #1057. Missing a test.
323308

309+
":file" does not show anything when 'shortmess' contains 'F'. (#3070)
310+
324311
Patch to add winlayout() function. (Yegappan Lakshmanan, 2018 Jan 4)
325312

326313
No profile information for function that executes ":quit". (Daniel Hahler,
@@ -463,6 +450,10 @@ The ++ options for the :edit command are also useful on the Vim command line.
463450
When recovering a file, put the swap file name in b:recovered_swapfile. Then
464451
a command can delete it.
465452

453+
When a swap file exists, is not for a running process, is from the same
454+
machine and recovering results in the same text, we could silently delete it.
455+
#1237
456+
466457
Overlong utf-8 sequence is displayed wrong. (Harm te Hennepe, 2017 Sep 14,
467458
#2089) Patch with possible solution by Björn Linse.
468459

@@ -3430,9 +3421,6 @@ Macintosh:
34303421
7 X11: Some people prefer to use CLIPBOARD instead of PRIMARY for the normal
34313422
selection. Add an "xclipboard" argument to the 'clipboard' option? (Mark
34323423
Waggoner)
3433-
8 For xterm need to open a connection to the X server to get the window
3434-
title, which can be slow. Can also get the title with "<Esc>[21t", no
3435-
need to use X11 calls. This returns "<Esc>]l{title}<Esc>\".
34363424
6 When the xterm reports the number of colors, a redraw occurs. This is
34373425
annoying on a slow connection. Wait for the xterm to report the number of
34383426
colors before drawing the screen. With a timeout.

runtime/doc/various.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ N *+title* Setting the window 'title' and 'icon'
456456
N *+toolbar* |gui-toolbar|
457457
m *+transparency* MacVim only: window background transparency
458458
N *+user_commands* User-defined commands. |user-commands|
459+
B *+vartabs* Variable-width tabstops. |'vartabstop'|
459460
N *+viminfo* |'viminfo'|
460461
*+vertsplit* Vertically split windows |:vsplit|; Always enabled
461462
since 8.0.1118.

0 commit comments

Comments
 (0)