Skip to content

Commit c10dbb5

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents d3a1dfb + b13501f commit c10dbb5

110 files changed

Lines changed: 9125 additions & 4147 deletions

Some content is hidden

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

runtime/doc/autocmd.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.0. Last change: 2017 Apr 07
1+
*autocmd.txt* For Vim version 8.0. Last change: 2017 Jul 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -651,7 +651,8 @@ FileType When the 'filetype' option has been set. The
651651
pattern is matched against the filetype.
652652
<afile> can be used for the name of the file
653653
where this option was set, and <amatch> for
654-
the new value of 'filetype'.
654+
the new value of 'filetype'. Navigating to
655+
another window or buffer is not allowed.
655656
See |filetypes|.
656657
*FileWriteCmd*
657658
FileWriteCmd Before writing to a file, when not writing the

runtime/doc/channel.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ By default this reads the whole buffer. This can be changed with the "in_top"
518518
and "in_bot" options.
519519

520520
A special mode is when "in_top" is set to zero and "in_bot" is not set: Every
521-
time a line is added to the buffer, the last-but-one line will be send to the
521+
time a line is added to the buffer, the last-but-one line will be sent to the
522522
job stdin. This allows for editing the last line and sending it when pressing
523523
Enter.
524524
*channel-close-in*

runtime/doc/cmdline.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 8.0. Last change: 2016 Sep 27
1+
*cmdline.txt* For Vim version 8.0. Last change: 2017 Jul 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -455,6 +455,9 @@ matches exactly one character.
455455

456456
The 'wildignorecase' option can be set to ignore case in filenames.
457457

458+
The 'wildmenu' option can be set to show the matches just above the command
459+
line.
460+
458461
If you like tcsh's autolist completion, you can use this mapping:
459462
:cnoremap X <C-L><C-D>
460463
(Where X is the command key to use, <C-L> is CTRL-L and <C-D> is CTRL-D)

runtime/doc/debug.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*debug.txt* For Vim version 8.0. Last change: 2012 Feb 11
1+
*debug.txt* For Vim version 8.0. Last change: 2017 Jul 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -53,7 +53,7 @@ Use this command to start Vim:
5353
valgrind --log-file=valgrind.log --leak-check=full ./vim
5454
5555
Note: Vim will run much slower. If your .vimrc is big or you have several
56-
plugins you need to be patient for startup, or run with the "-u NONE"
56+
plugins you need to be patient for startup, or run with the "--clean"
5757
argument.
5858

5959
There are often a few leaks from libraries, such as getpwuid() and

runtime/doc/editing.txt

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 8.0. Last change: 2017 Apr 10
1+
*editing.txt* For Vim version 8.0. Last change: 2017 Jul 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -617,16 +617,16 @@ list of the current window.
617617
Also see |++opt| and |+cmd|.
618618
{Vi: no ++opt}
619619

620-
:[count]arge[dit][!] [++opt] [+cmd] {name} *:arge* *:argedit*
621-
Add {name} to the argument list and edit it.
620+
:[count]arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit*
621+
Add {name}s to the argument list and edit it.
622622
When {name} already exists in the argument list, this
623623
entry is edited.
624624
This is like using |:argadd| and then |:edit|.
625-
Note that only one file name is allowed, and spaces
626-
inside the file name are allowed, like with |:edit|.
625+
Spaces in filenames have to be escaped with "\".
627626
[count] is used like with |:argadd|.
628-
[!] is required if the current file cannot be
629-
|abandon|ed.
627+
If the current file cannot be |abandon|ed {name}s will
628+
still be added to the argument list, but won't be
629+
edited. No check for duplicates is done.
630630
Also see |++opt| and |+cmd|.
631631
{not in Vi}
632632

@@ -1328,9 +1328,11 @@ present in 'cpoptions' and "!" is not used in the command.
13281328
:chd[ir][!] [path] Same as |:cd|.
13291329

13301330
*:lc* *:lcd*
1331-
:lc[d][!] {path} Like |:cd|, but only set the current directory for the
1332-
current window. The current directory for other
1333-
windows is not changed. {not in Vi}
1331+
:lc[d][!] {path} Like |:cd|, but only set the current directory when
1332+
the cursor is in the current window. The current
1333+
directory for other windows is not changed, switching
1334+
to another window will stop using {path}.
1335+
{not in Vi}
13341336

13351337
*:lch* *:lchdir*
13361338
:lch[dir][!] Same as |:lcd|. {not in Vi}

runtime/doc/eval.txt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Jul 08
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Jul 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2369,6 +2369,12 @@ tagfiles() List tags files used
23692369
tan({expr}) Float tangent of {expr}
23702370
tanh({expr}) Float hyperbolic tangent of {expr}
23712371
tempname() String name for a temporary file
2372+
term_getsize() Dict get the size of a terminal
2373+
term_open() Job open a terminal window and run a job
2374+
term_scrape() List inspect terminal screen
2375+
term_sendkeys() Number send keystrokes to a terminal
2376+
term_setsize() Number set the size of a terminal
2377+
term_wait() Number wait for screen to be updated
23722378
test_alloc_fail({id}, {countdown}, {repeat})
23732379
none make memory allocation fail
23742380
test_autochdir() none enable 'autochdir' during startup
@@ -7887,6 +7893,23 @@ tempname() *tempname()* *temp-file-name*
78877893
For MS-Windows forward slashes are used when the 'shellslash'
78887894
option is set or when 'shellcmdflag' starts with '-'.
78897895

7896+
term_getsize() *term_getsize()*
7897+
Get the size of a terminal. NOT IMPLEMENTED YET
7898+
7899+
term_open() *term_open()*
7900+
Open a terminal window and run a job. NOT IMPLEMENTED YET
7901+
7902+
term_scrape() *term_scrape()*
7903+
Inspect terminal screen. NOT IMPLEMENTED YET
7904+
7905+
term_sendkeys() *term_sendkeys()*
7906+
Send keystrokes to a terminal. NOT IMPLEMENTED YET
7907+
7908+
term_setsize() *term_setsize()*
7909+
Set the size of a terminal. NOT IMPLEMENTED YET
7910+
7911+
term_wait() *term_wait()*
7912+
Wait for screen to be updated. NOT IMPLEMENTED YET
78907913

78917914
test_alloc_fail({id}, {countdown}, {repeat}) *test_alloc_fail()*
78927915
This is for testing: If the memory allocation with {id} is

runtime/doc/gui_x11.txt

Lines changed: 117 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui_x11.txt* For Vim version 8.0. Last change: 2016 Sep 12
1+
*gui_x11.txt* For Vim version 8.0. Last change: 2017 Jun 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -288,8 +288,9 @@ For CDE "dtwm" (a derivative of Motif) add this line in the .Xdefaults: >
288288
For "mwm" (Motif window manager) the line would be: >
289289
Mwm*Vim*iconImage: /usr/local/share/vim/vim32x32.xpm
290290
291-
Mouse Pointers Available in X11 *X11_mouse_shapes*
292291
292+
Mouse Pointers Available in X11 ~
293+
*X11_mouse_shapes*
293294
By using the |'mouseshape'| option, the mouse pointer can be automatically
294295
changed whenever Vim enters one of its various modes (e.g., Insert or
295296
Command). Currently, the available pointers are:
@@ -363,7 +364,9 @@ to the GTK documentation, however little there is, on how to do this.
363364
See http://developer.gnome.org/doc/API/2.0/gtk/gtk-Resource-Files.html
364365
for more information.
365366

366-
*gtk-tooltip-colors*
367+
368+
Tooltip Colors ~
369+
*gtk-tooltip-colors*
367370
Example, which sets the tooltip colors to black on light-yellow: >
368371
369372
style "tooltips"
@@ -381,15 +384,122 @@ distribution.
381384
For GTK+ 3, an effect similar to the above can be obtained by adding the
382385
following snippet of CSS code to $XDG_HOME_DIR/gtk-3.0/gtk.css (usually,
383386
$HOME/.config/gtk-3.0/gtk.css):
384-
>
387+
388+
For GTK+ 3 < 3.20: >
389+
385390
.tooltip {
386391
background-color: #ffffcc;
387392
color: #000000;
388393
}
389394
<
395+
For GTK+ 3 >= 3.20: >
396+
397+
tooltip {
398+
background-color: #ffffcc;
399+
text-shadow: none;
400+
}
401+
402+
tooltip label {
403+
color: #2e3436;
404+
}
405+
<
406+
407+
A Quick Look at GTK+ CSS ~
408+
*gtk-css*
409+
The contents of this subsection apply to GTK+ 3.20 or later which provides
410+
stable support for GTK+ CSS:
411+
412+
https://developer.gnome.org/gtk3/stable/theming.html
390413

391-
Using Vim as a GTK+ plugin *gui-gtk-socketid*
414+
GTK+ uses CSS for styling and layout of widgets. In this subsection, we'll
415+
have a quick look at GTK+ CSS through simple, illustrative examples.
392416

417+
Example 1. Empty Space Adjustment ~
418+
419+
By default, the toolbar and the tabline of the GTK+ 3 GUI are somewhat larger
420+
than those of the GTK+ 2 GUI. Some people may want to make them look similar
421+
to the GTK+ 2 GUI in size.
422+
423+
To do that, we'll try reducing empty space around icons and labels that looks
424+
apparently superfluous.
425+
426+
Add the following lines to $XDG_HOME_DIR/gtk-3.0/gtk.css (usually,
427+
$HOME/.config/gtk-3.0/gtk.css): >
428+
429+
toolbar button {
430+
margin-top: -2px;
431+
margin-right: 0px;
432+
margin-bottom: -2px;
433+
margin-left: 0px;
434+
435+
padding-top: 0px;
436+
padding-right: 0px;
437+
padding-bottom: 0px;
438+
padding-left: 0px
439+
}
440+
441+
notebook tab {
442+
margin-top: -1px;
443+
margin-right: 3px;
444+
margin-bottom: -1px;
445+
margin-left: 3px;
446+
447+
padding-top: 0px;
448+
padding-right: 0px;
449+
padding-bottom: 0px;
450+
padding-left: 0px
451+
}
452+
<
453+
Since it's a CSS, they can be rewritten using shorthand: >
454+
455+
toolbar button {
456+
margin: -2px 0px;
457+
padding: 0px;
458+
}
459+
460+
notebook tab {
461+
margin: -1px 3px;
462+
padding: 0px
463+
}
464+
<
465+
Note: You might want to use 'toolbariconsize' to adjust the icon size, too.
466+
467+
Note: Depending on the icon theme and/or the font in use, some extra tweaks
468+
may be needed for a satisfactory result.
469+
470+
Note: In addition to margin and padding, you can use border. For details,
471+
refer to the box model of CSS, e.g.,
472+
473+
https://www.w3schools.com/css/css_boxmodel.asp
474+
475+
Example 2. More Than Just Colors ~
476+
477+
GTK+ CSS supports gradients as well: >
478+
479+
tooltip {
480+
background-image: -gtk-gradient(linear,
481+
0 0, 0 1,
482+
color-stop(0, #344752),
483+
color-stop(0.5, #546772),
484+
color-stop(1, #243742));
485+
}
486+
487+
tooltip label {
488+
color: #f3f3f3;
489+
}
490+
<
491+
Gradients can be used to make a GUI element visually distinguishable from
492+
others without relying on high contrast. Accordingly, effective use of them is
493+
a useful technique to give a theme a sense of unity in color and luminance.
494+
495+
Note: Theming can be difficult since it must make every application look
496+
equally good; making a single application more charming often gets others
497+
unexpectedly less attractive or even deteriorates their usability. Keep this
498+
in mind always when you try improving a theme.
499+
500+
501+
Using Vim as a GTK+ plugin ~
502+
*gui-gtk-socketid*
393503
When the GTK+ version of Vim starts up normally, it creates its own top level
394504
window (technically, a 'GtkWindow'). GTK+ provides an embedding facility with
395505
its GtkSocket and GtkPlug widgets. If one GTK+ application creates a
@@ -434,8 +544,8 @@ Note: Avoid use of --enable-gnome-check with GTK+ 3 GUI build. The
434544
functionality mentioned above is consolidated in GTK+ 3.
435545

436546

437-
GNOME session support *gui-gnome-session* *gnome-session*
438-
547+
GNOME session support ~
548+
*gui-gnome-session* *gnome-session*
439549
On logout, Vim shows the well-known exit confirmation dialog if any buffers
440550
are modified. Clicking [Cancel] will stop the logout process. Otherwise the
441551
current session is stored to disk by using the |:mksession| command, and

runtime/doc/if_cscop.txt

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

33

44
VIM REFERENCE MANUAL by Andy Kahn
@@ -91,9 +91,10 @@ suggested use.)
9191
2. Cscope related commands *cscope-commands*
9292

9393
*:cscope* *:cs* *:scs* *:scscope* *E259* *E262* *E561* *E560*
94-
All cscope commands are accessed through suboptions to the main cscope
95-
command ":cscope". The shortest abbreviation is ":cs". The ":scscope"
96-
command does the same and also splits the window (short: "scs").
94+
All cscope commands are accessed through suboptions to the cscope commands.
95+
`:cscope` or `:cs` is the main command
96+
`:scscope` or `:scs` does the same and splits the window
97+
`:lcscope` or `:lcs` uses the location list, see |:lcscope|
9798

9899
The available subcommands are:
99100

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.0. Last change: 2017 Apr 22
1+
*index.txt* For Vim version 8.0. Last change: 2017 Jul 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1575,6 +1575,7 @@ tag command action ~
15751575
|:tcldo| :tcld[o] execute Tcl command for each line
15761576
|:tclfile| :tclf[ile] execute Tcl script file
15771577
|:tearoff| :te[aroff] tear-off a menu
1578+
|:terminal| :ter[minal] open a terminal window
15781579
|:tfirst| :tf[irst] jump to first matching tag
15791580
|:throw| :th[row] throw an exception
15801581
|:tjump| :tj[ump] like ":tselect", but jump directly when there

0 commit comments

Comments
 (0)