Skip to content

Commit de249a8

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents a73703f + 12be734 commit de249a8

Some content is hidden

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

61 files changed

+861
-319
lines changed

.github/CODEOWNERS_vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ runtime/syntax/csh.vim @cecamp
142142
runtime/syntax/cucumber.vim @tpope
143143
runtime/syntax/datascript.vim @dpelle
144144
runtime/syntax/dcl.vim @cecamp
145+
runtime/syntax/desktop.vim @e-kwsm
145146
runtime/syntax/doxygen.vim @frogonwheels
146147
runtime/syntax/dtd.vim @chrisbra
147148
runtime/syntax/elmfilt.vim @cecamp
@@ -152,6 +153,7 @@ runtime/syntax/gitcommit.vim @tpope
152153
runtime/syntax/gitconfig.vim @tpope
153154
runtime/syntax/gitrebase.vim @tpope
154155
runtime/syntax/gprof.vim @dpelle
156+
runtime/syntax/groff.vim @jmarshall
155157
runtime/syntax/haml.vim @tpope
156158
runtime/syntax/haskell.vim @coot
157159
runtime/syntax/hgcommit.vim @k-takata
@@ -162,10 +164,10 @@ runtime/syntax/lisp.vim @cecamp
162164
runtime/syntax/lynx.vim @dkearns
163165
runtime/syntax/mailcap.vim @dkearns
164166
runtime/syntax/make.vim @rohieb
165-
runtime/syntax/make.vim @rohieb
166167
runtime/syntax/maple.vim @cecamp
167168
runtime/syntax/markdown.vim @tpope
168169
runtime/syntax/netrw.vim @cecamp
170+
runtime/syntax/nroff.vim @jmarshall
169171
runtime/syntax/nsis.vim @k-takata
170172
runtime/syntax/pdf.vim @tpope
171173
runtime/syntax/php.vim @TysonAndre
@@ -180,7 +182,9 @@ runtime/syntax/sh.vim @cecamp
180182
runtime/syntax/sm.vim @cecamp
181183
runtime/syntax/spec.vim @ignatenkobrain
182184
runtime/syntax/sqloracle.vim @chrisbra
185+
runtime/syntax/sshconfig.vim @Jakuje
183186
runtime/syntax/sshdconfig.vim @Jakuje
187+
runtime/syntax/sudoers.vim @e-kwsm
184188
runtime/syntax/tags.vim @cecamp
185189
runtime/syntax/teraterm.vim @k-takata
186190
runtime/syntax/tex.vim @cecamp

runtime/doc/autocmd.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.2. Last change: 2021 Jan 28
1+
*autocmd.txt* For Vim version 8.2. Last change: 2021 Mar 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1526,9 +1526,11 @@ option will not cause any commands to be executed.
15261526
*:doautoa* *:doautoall*
15271527
:doautoa[ll] [<nomodeline>] [group] {event} [fname]
15281528
Like ":doautocmd", but apply the autocommands to each
1529-
loaded buffer. Note that [fname] is used to select
1530-
the autocommands, not the buffers to which they are
1531-
applied.
1529+
loaded buffer. The current buffer is done last.
1530+
1531+
Note that [fname] is used to select the autocommands,
1532+
not the buffers to which they are applied.
1533+
15321534
Careful: Don't use this for autocommands that delete a
15331535
buffer, change to another buffer or change the
15341536
contents of a buffer; the result is unpredictable.

runtime/doc/eval.txt

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.2. Last change: 2021 Mar 10
1+
*eval.txt* For Vim version 8.2. Last change: 2021 Mar 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -5119,6 +5119,13 @@ getbufinfo([{dict}])
51195119
listed TRUE if the buffer is listed.
51205120
lnum Line number used for the buffer when
51215121
opened in the current window.
5122+
Only valid if the buffer has been
5123+
displayed in the window in the past.
5124+
If you want the line number of the
5125+
last known cursor position in a given
5126+
window, use |line()|: >
5127+
:echo line('.', {winid})
5128+
<
51225129
linecount Number of lines in the buffer (only
51235130
valid when loaded)
51245131
loaded TRUE if the buffer is loaded.
@@ -6107,12 +6114,12 @@ getwininfo([{winid}]) *getwininfo()*
61076114
width window width
61086115
winbar 1 if the window has a toolbar, 0
61096116
otherwise
6110-
wincol leftmost screen column of the window,
6111-
col from |win_screenpos()|
6117+
wincol leftmost screen column of the window;
6118+
"col" from |win_screenpos()|
61126119
winid |window-ID|
61136120
winnr window number
6114-
winrow topmost screen column of the window,
6115-
row from |win_screenpos()|
6121+
winrow topmost screen line of the window;
6122+
"row" from |win_screenpos()|
61166123

61176124
Can also be used as a |method|: >
61186125
GetWinnr()->getwininfo()
@@ -12827,8 +12834,8 @@ text...
1282712834
it can no longer be changed (until it is unlocked).
1282812835
A locked variable can be deleted: >
1282912836
:lockvar v
12830-
:let v = 'asdf' " fails!
12831-
:unlet v
12837+
:let v = 'asdf' " fails!
12838+
:unlet v " works
1283212839
< *E741* *E940*
1283312840
If you try to change a locked variable you get an
1283412841
error message: "E741: Value is locked: {name}".

runtime/doc/index.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*index.txt* For Vim version 8.2. Last change: 2021 Feb 14
1+
*index.txt* For Vim version 8.2. Last change: 2021 Mar 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1294,6 +1294,7 @@ tag command action ~
12941294
|:edit| :e[dit] edit a file
12951295
|:earlier| :ea[rlier] go to older change, undo
12961296
|:echo| :ec[ho] echoes the result of expressions
1297+
|:echoconsole| :echoc[onsole] like :echomsg but write to stdout
12971298
|:echoerr| :echoe[rr] like :echo, show like an error and use history
12981299
|:echohl| :echoh[l] set highlighting for echo commands
12991300
|:echomsg| :echom[sg] same as :echo, put message in history

runtime/doc/map.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 8.2. Last change: 2020 Dec 10
1+
*map.txt* For Vim version 8.2. Last change: 2021 Mar 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -271,8 +271,8 @@ typeahead, before the previous command has been executed. For example: >
271271
endfunc
272272
nnoremap <expr> x StoreColumn()
273273
nmap ! f!x
274-
You will notice that g:column has the value from before executing "fx",
275-
because "z" is evaluated before "fx" is executed.
274+
You will notice that g:column has the value from before executing "f!",
275+
because "x" is evaluated before "f!" is executed.
276276
This can be solved by inserting <Ignore> before the character that is
277277
expression-mapped: >
278278
nmap ! f!<Ignore>x

runtime/doc/motion.txt

Lines changed: 39 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*motion.txt* For Vim version 8.2. Last change: 2020 Oct 18
1+
*motion.txt* For Vim version 8.2. Last change: 2021 Mar 28
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -942,8 +942,7 @@ These commands are not marks themselves, but jump to a mark:
942942
line.
943943

944944
*]`*
945-
]` [count] times to lowercase mark after the cursor. {not
946-
in Vi}
945+
]` [count] times to lowercase mark after the cursor.
947946

948947
*['*
949948
[' [count] times to previous line with a lowercase mark
@@ -1037,6 +1036,12 @@ CTRL-I Go to [count] newer cursor position in jump list
10371036
(not a motion command).
10381037
{not available without the |+jumplist| feature}
10391038

1039+
NOTE: In the GUI and in a terminal supporting
1040+
|modifyOtherKeys|, CTRL-I can be mapped separately
1041+
from <Tab>, on the condition that CTRL-I is
1042+
mapped before <Tab>, otherwise the mapping applies to
1043+
both.
1044+
10401045
*:ju* *:jumps*
10411046
:ju[mps] Print the jump list (not a motion command).
10421047
{not available without the |+jumplist| feature}
@@ -1054,11 +1059,11 @@ The maximum number of entries is fixed at 100.
10541059

10551060
For example, after three jump commands you have this jump list:
10561061

1057-
jump line col file/text ~
1058-
3 1 0 some text ~
1059-
2 70 0 another line ~
1060-
1 1154 23 end. ~
1061-
> ~
1062+
jump line col file/text ~
1063+
3 1 0 some text ~
1064+
2 70 0 another line ~
1065+
1 1154 23 end. ~
1066+
> ~
10621067

10631068
The "file/text" column shows the file name, or the text at the jump if it is
10641069
in the current file (an indent is removed and a long line is truncated to fit
@@ -1067,11 +1072,11 @@ in the window).
10671072
You are currently in line 1167. If you then use the CTRL-O command, the
10681073
cursor is put in line 1154. This results in:
10691074

1070-
jump line col file/text ~
1071-
2 1 0 some text ~
1072-
1 70 0 another line ~
1073-
> 0 1154 23 end. ~
1074-
1 1167 0 foo bar ~
1075+
jump line col file/text ~
1076+
2 1 0 some text ~
1077+
1 70 0 another line ~
1078+
> 0 1154 23 end. ~
1079+
1 1167 0 foo bar ~
10751080

10761081
The pointer will be set at the last used jump position. The next CTRL-O
10771082
command will use the entry above it, the next CTRL-I command will use the
@@ -1098,12 +1103,12 @@ that calling setpos() does not do this.
10981103
After the CTRL-O command that got you into line 1154 you could give another
10991104
jump command (e.g., "G"). The jump list would then become:
11001105

1101-
jump line col file/text ~
1102-
4 1 0 some text ~
1103-
3 70 0 another line ~
1104-
2 1167 0 foo bar ~
1105-
1 1154 23 end. ~
1106-
> ~
1106+
jump line col file/text ~
1107+
4 1 0 some text ~
1108+
3 70 0 another line ~
1109+
2 1167 0 foo bar ~
1110+
1 1154 23 end. ~
1111+
> ~
11071112

11081113
The line numbers will be adjusted for deleted and inserted lines. This fails
11091114
if you stop editing a file without writing, like with ":n!".
@@ -1152,7 +1157,7 @@ Note that when text has been inserted or deleted the cursor position might be
11521157
a bit different from the position of the change. Especially when lines have
11531158
been deleted.
11541159

1155-
When the |:keepjumps| command modifier is used the position of a change is not
1160+
When the `:keepjumps` command modifier is used the position of a change is not
11561161
remembered.
11571162

11581163
*:changes*
@@ -1193,7 +1198,7 @@ remembered.
11931198
#if, #ifdef, #else, #elif, #endif
11941199
C preprocessor conditionals (when the
11951200
cursor is on the # or no ([{
1196-
following)
1201+
is following)
11971202
For other items the matchit plugin can be used, see
11981203
|matchit-install|. This plugin also helps to skip
11991204
matches in comments.
@@ -1222,19 +1227,16 @@ remembered.
12221227
#if/#else/#endif makes the movement linewise.
12231228

12241229
*[(*
1225-
[( go to [count] previous unmatched '('.
1230+
[( Go to [count] previous unmatched '('.
12261231
|exclusive| motion.
1227-
12281232
*[{*
1229-
[{ go to [count] previous unmatched '{'.
1233+
[{ Go to [count] previous unmatched '{'.
12301234
|exclusive| motion.
1231-
12321235
*])*
1233-
]) go to [count] next unmatched ')'.
1236+
]) Go to [count] next unmatched ')'.
12341237
|exclusive| motion.
1235-
12361238
*]}*
1237-
]} go to [count] next unmatched '}'.
1239+
]} Go to [count] next unmatched '}'.
12381240
|exclusive| motion.
12391241

12401242
The above four commands can be used to go to the start or end of the current
@@ -1268,7 +1270,7 @@ bring you back to the switch statement.
12681270
class. When no '}' is found before the cursor this is
12691271
an error. |exclusive| motion.
12701272

1271-
The above two commands assume that the file contains a class with methods.
1273+
The above four commands assume that the file contains a class with methods.
12721274
The class definition is surrounded in '{' and '}'. Each method in the class
12731275
is also surrounded with '{' and '}'. This applies to the Java language. The
12741276
file looks like this: >
@@ -1282,29 +1284,33 @@ file looks like this: >
12821284
body_two();
12831285
}
12841286
}
1287+
1288+
[To try this out copy the text and put it in a new buffer, the help text above
1289+
confuses the jump commands]
1290+
12851291
Starting with the cursor on "body_two()", using "[m" will jump to the '{' at
12861292
the start of "method_two()" (obviously this is much more useful when the
12871293
method is long!). Using "2[m" will jump to the start of "method_one()".
12881294
Using "3[m" will jump to the start of the class.
12891295

12901296
*[#*
1291-
[# go to [count] previous unmatched "#if" or "#else".
1297+
[# Go to [count] previous unmatched "#if" or "#else".
12921298
|exclusive| motion.
12931299

12941300
*]#*
1295-
]# go to [count] next unmatched "#else" or "#endif".
1301+
]# Go to [count] next unmatched "#else" or "#endif".
12961302
|exclusive| motion.
12971303

12981304
These two commands work in C programs that contain #if/#else/#endif
12991305
constructs. It brings you to the start or end of the #if/#else/#endif where
13001306
the current line is included. You can then use "%" to go to the matching line.
13011307

13021308
*[star* *[/*
1303-
[* or [/ go to [count] previous start of a C comment "/*".
1309+
[* or [/ Go to [count] previous start of a C comment "/*".
13041310
|exclusive| motion.
13051311

13061312
*]star* *]/*
1307-
]* or ]/ go to [count] next end of a C comment "*/".
1313+
]* or ]/ Go to [count] next end of a C comment "*/".
13081314
|exclusive| motion.
13091315

13101316

runtime/doc/options.txt

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.2. Last change: 2021 Feb 13
1+
*options.txt* For Vim version 8.2. Last change: 2021 Mar 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -746,6 +746,15 @@ A jump table for the options with a short description can be found at |Q_op|.
746746
or selected.
747747
Note: When this option is on some plugins may not work.
748748

749+
*'autoshelldir'* *'asd'* *'noautoshelldir'* *'noasd'*
750+
'autoshelldir' 'asd' boolean (default off)
751+
global
752+
When on, Vim will change the current working directory whenever you
753+
change the directory of the shell running in a terminal window. You
754+
need proper setting-up, so whenever the shell's pwd changes an OSC 7
755+
escape sequence will be emitted. For example, on Linux, you can source
756+
/etc/profile.d/vte.sh in your shell profile if you use bash or zsh.
757+
749758
*'arabic'* *'arab'* *'noarabic'* *'noarab'*
750759
'arabic' 'arab' boolean (default off)
751760
local to window
@@ -3951,7 +3960,7 @@ A jump table for the options with a short description can be found at |Q_op|.
39513960
*'go-v'*
39523961
'v' Use a vertical button layout for dialogs. When not included,
39533962
a horizontal layout is preferred, but when it doesn't fit a
3954-
vertical layout is used anyway.
3963+
vertical layout is used anyway. Not supported in GTK 3.
39553964
*'go-p'*
39563965
'p' Use Pointer callbacks for X11 GUI. This is required for some
39573966
window managers. If the cursor is not blinking or hollow at
@@ -9000,15 +9009,15 @@ A jump table for the options with a short description can be found at |Q_op|.
90009009
*'window'* *'wi'*
90019010
'window' 'wi' number (default screen height - 1)
90029011
global
9003-
Window height. Do not confuse this with the height of the Vim window,
9004-
use 'lines' for that.
9005-
Used for |CTRL-F| and |CTRL-B| when there is only one window and the
9006-
value is smaller than 'lines' minus one. The screen will scroll
9007-
'window' minus two lines, with a minimum of one.
9012+
Window height used for |CTRL-F| and |CTRL-B| when there is only one
9013+
window and the value is smaller than 'lines' minus one. The screen
9014+
will scroll 'window' minus two lines, with a minimum of one.
90089015
When 'window' is equal to 'lines' minus one CTRL-F and CTRL-B scroll
90099016
in a much smarter way, taking care of wrapping lines.
90109017
When resizing the Vim window, the value is smaller than 1 or more than
90119018
or equal to 'lines' it will be set to 'lines' minus 1.
9019+
Note: Do not confuse this with the height of the Vim window, use
9020+
'lines' for that.
90129021

90139022
*'winheight'* *'wh'* *E591*
90149023
'winheight' 'wh' number (default 1)

runtime/doc/quickref.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickref.txt* For Vim version 8.2. Last change: 2020 Aug 15
1+
*quickref.txt* For Vim version 8.2. Last change: 2021 Mar 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -605,6 +605,7 @@ Short explanation of each option: *option-list*
605605
'ambiwidth' 'ambw' what to do with Unicode chars of ambiguous width
606606
'antialias' 'anti' Mac OS X: use smooth, antialiased fonts
607607
'autochdir' 'acd' change directory to the file in the current window
608+
'autoshelldir' 'asd' change directory to the shell's current directory
608609
'arabic' 'arab' for Arabic as a default second language
609610
'arabicshape' 'arshape' do shaping for Arabic characters
610611
'autoindent' 'ai' take indent for new line from previous line

runtime/doc/syntax.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,9 +2236,10 @@ can use them.
22362236

22372237
For example, Linux and BSD distributions use groff as their default text
22382238
processing package. In order to activate the extra syntax highlighting
2239-
features for groff, add the following option to your start-up files: >
2239+
features for groff, arrange for files to be recognized as groff (see
2240+
|ft-groff-syntax|) or add the following option to your start-up files: >
22402241
2241-
:let b:nroff_is_groff = 1
2242+
:let nroff_is_groff = 1
22422243
22432244
Groff is different from the old AT&T n/troff that you may still find in
22442245
Solaris. Groff macro and request names can be longer than 2 characters and

0 commit comments

Comments
 (0)