Skip to content

Commit 2f9bb2a

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents be7c012 + d29459b commit 2f9bb2a

Some content is hidden

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

58 files changed

+4095
-2171
lines changed

runtime/doc/channel.txt

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*channel.txt* For Vim version 7.4. Last change: 2016 Jul 15
1+
*channel.txt* For Vim version 7.4. Last change: 2016 Aug 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -247,9 +247,15 @@ In which {number} is different every time. It must be used in the response
247247
This way Vim knows which sent message matches with which received message and
248248
can call the right handler. Also when the messages arrive out of order.
249249

250+
A newline character is terminating the JSON text. This can be used to
251+
separate the read text. For example, in Python:
252+
splitidx = read_text.find('\n')
253+
message = read_text[:splitidx]
254+
rest = read_text[splitidx + 1:]
255+
250256
The sender must always send valid JSON to Vim. Vim can check for the end of
251257
the message by parsing the JSON. It will only accept the message if the end
252-
was received.
258+
was received. A newline after the message is optional.
253259

254260
When the process wants to send a message to Vim without first receiving a
255261
message, it must use the number zero:

runtime/doc/cmdline.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,11 +409,19 @@ CTRL-D List names that match the pattern in front of the cursor.
409409
*c_CTRL-N*
410410
CTRL-N After using 'wildchar' which got multiple matches, go to next
411411
match. Otherwise recall more recent command-line from history.
412+
*/_CTRL-N*
413+
When 'incsearch' is set, entering a search pattern for "/" or
414+
"?" and the current match is displayed then CTRL-N will move
415+
to the next match (does not take |search-offset| into account)
412416
<S-Tab> *c_CTRL-P* *c_<S-Tab>*
413417
CTRL-P After using 'wildchar' which got multiple matches, go to
414418
previous match. Otherwise recall older command-line from
415419
history. <S-Tab> only works with the GUI, on the Amiga and
416420
with MS-DOS.
421+
*/_CTRL-P*
422+
When 'incsearch' is set, entering a search pattern for "/" or
423+
"?" and the current match is displayed then CTRL-P will move
424+
to the previous match (does not take |search-offset| into account).
417425
*c_CTRL-A*
418426
CTRL-A All names that match the pattern in front of the cursor are
419427
inserted.
@@ -423,6 +431,7 @@ CTRL-L A match is done on the pattern in front of the cursor. If
423431
If there are multiple matches the longest common part is
424432
inserted in place of the pattern. If the result is shorter
425433
than the pattern, no completion is done.
434+
*/_CTRL-L*
426435
When 'incsearch' is set, entering a search pattern for "/" or
427436
"?" and the current match is displayed then CTRL-L will add
428437
one character from the end of the current match. If

runtime/doc/eval.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 18
1+
*eval.txt* For Vim version 7.4. Last change: 2016 Aug 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -7305,7 +7305,7 @@ strwidth({expr}) *strwidth()*
73057305
Ambiguous, this function's return value depends on 'ambiwidth'.
73067306
Also see |strlen()|, |strdisplaywidth()| and |strchars()|.
73077307

7308-
submatch({nr}[, {list}]) *submatch()*
7308+
submatch({nr}[, {list}]) *submatch()* *E935*
73097309
Only for an expression in a |:substitute| command or
73107310
substitute() function.
73117311
Returns the {nr}'th submatch of the matched text. When {nr}

runtime/doc/gui_x11.txt

Lines changed: 41 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*gui_x11.txt* For Vim version 7.4. Last change: 2016 Apr 08
1+
*gui_x11.txt* For Vim version 7.4. Last change: 2016 Aug 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -430,6 +430,9 @@ These are the different looks:
430430
GNOME is compiled with if it was found by configure and the
431431
--enable-gnome-check argument was used.
432432

433+
Note: Avoid use of --enable-gnome-check with GTK+ 3 GUI build. The
434+
functionality mentioned above is consolidated in GTK+ 3.
435+
433436

434437
GNOME session support *gui-gnome-session* *gnome-session*
435438

@@ -466,39 +469,52 @@ continues on Yzis: https://github.com/chrizel/Yzis.
466469
==============================================================================
467470
8. Compiling *gui-x11-compiling*
468471

469-
If using X11, Vim's Makefile will by default first try to find the necessary
470-
GTK+ files on your system. If the GTK+ files cannot be found, then the Motif
471-
files will be searched for. Finally, if this fails, the Athena files will be
472-
searched for. If all three fail, the GUI will be disabled.
472+
If using X11, Vim's configure will by default first try to find the necessary
473+
GTK+ files on your system. When both GTK+ 2 and GTK+ 3 are available, GTK+ 2
474+
will be chosen unless --enable-gui=gtk3 is passed explicitly to configure.
475+
476+
If the GTK+ files cannot be found, then the Motif files will be searched for.
477+
Finally, if this fails, the Athena files will be searched for. If all three
478+
fail, the GUI will be disabled.
479+
480+
For GTK+, Vim's configuration process uses pkg-config(1) to check if the
481+
GTK+ required for a specified build is properly installed and usable.
482+
Accordingly, it is a good idea to make sure before running configure that
483+
your system has a working pkg-config together with the .pc file of the
484+
required GTK+. For that, say, run the following on the command line to see if
485+
your pkg-config works with your GTK+ 2: >
486+
487+
$ pkgconfig --modversion gtk+-2.0
473488
474-
For GTK+, Vim's configuration process requires that GTK+ be properly
475-
installed. That is, the shell script 'gtk-config' must be in your PATH, and
476-
you can already successful compile, build, and execute a GTK+ program. The
477-
reason for this is that the compiler flags (CFLAGS) and link flags (LDFLAGS)
478-
are obtained through the 'gtk-config' shell script.
489+
Replace gtk+-2.0 with gtk+-3.0 for GTK+ 3. If you get the correct version
490+
number of your GTK+, you can proceed; if not, you probably need to do some
491+
system administration chores to set up pkg-config and GTK+ correctly.
479492

480-
If you want to build with GTK+ 2 support pass the --enable-gtk2-check argument
481-
to ./configure. Optionally, support for GNOME 2 will be compiled if the
482-
--enable-gnome-check option is also given.
493+
The GTK+ 2 GUI is built by default. Therefore, you usually don't need to pass
494+
any options such as --enable-gui=gtk2 to configure and build that.
495+
496+
Optionally, the GTK+ 2 GUI can consolidate the GNOME 2 support. This support
497+
is enabled by passing --enable-gnome-check to configure.
498+
499+
If you want to build the GTK+ 3 GUI, you have to pass --enable-gui=gtk3
500+
explicitly to configure, and avoid passing --enable-gnome-check to that, as
501+
the functionality of the GNOME 2 support has already been consolidated in
502+
GTK+ 3.
483503

484504
Otherwise, if you are using Motif or Athena, when you have the Motif or Athena
485505
files in a directory where configure doesn't look, edit the Makefile to enter
486506
the names of the directories. Search for "GUI_INC_LOC" for an example to set
487507
the Motif directories, "CONF_OPT_X" for Athena.
488508

489509
*gui-x11-gtk*
490-
At the time of this writing, GTK+ version 1.0.6 and 1.2 are outdated. It
491-
is suggested that you use GTK 2. The GTK 1 support will most likely be
492-
dropped soon.
493-
494-
For the GTK+ 2 GUI, using the latest release of the GTK+ 2.0 or GTK+ 2.2
495-
series is recommended.
496-
497-
Lastly, although GTK+ has supposedly been ported to the Win32 platform, this
498-
has not been tested with Vim and is also unsupported. Also, it's unlikely to
499-
even compile since GTK+ GUI uses parts of the generic X11 code. This might
500-
change in distant future; particularly because getting rid of the X11 centric
501-
code parts is also required for GTK+ framebuffer support.
510+
Currently, Vim supports both GTK+ 2 and GTK+ 3.
511+
512+
The GTK+ 2 GUI requires GTK+ 2.2 or later.
513+
514+
Although the GTK+ 3 GUI is written in such a way that the source code can be
515+
compiled against all versions of the 3.x series, we recommend GTK+ 3.10 or
516+
later because of its substantial implementation changes in redraw done at
517+
that version.
502518

503519
*gui-x11-motif*
504520
For Motif, you need at least Motif version 1.2 and/or X11R5. Motif 2.0 and

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 7.4. Last change: 2016 Aug 16
1+
*index.txt* For Vim version 7.4. Last change: 2016 Aug 24
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1239,6 +1239,7 @@ tag command action ~
12391239
|:file| :f[ile] show or set the current file name
12401240
|:files| :files list all files in the buffer list
12411241
|:filetype| :filet[ype] switch file type detection on/off
1242+
|:filter| :filt[er] filter output of following command
12421243
|:find| :fin[d] find file in 'path' and edit it
12431244
|:finally| :fina[lly] part of a :try command
12441245
|:finish| :fini[sh] quit sourcing a Vim script

runtime/doc/options.txt

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 7.4. Last change: 2016 Aug 14
1+
*options.txt* For Vim version 7.4. Last change: 2016 Aug 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4433,6 +4433,8 @@ A jump table for the options with a short description can be found at |Q_op|.
44334433
original position when no match is found and when pressing <Esc>. You
44344434
still need to finish the search command with <Enter> to move the
44354435
cursor to the match.
4436+
You can use the CTRL-N and CTRL-P keys to move to the next and
4437+
previous match. |c_CTRL-N| |c_CTRL-P|
44364438
When compiled with the |+reltime| feature Vim only searches for about
44374439
half a second. With a complicated pattern and/or a lot of text the
44384440
match may not be found. This is to avoid that Vim hangs while you
@@ -4746,7 +4748,7 @@ A jump table for the options with a short description can be found at |Q_op|.
47464748
be able to execute Normal mode commands.
47474749
This is the opposite of the 'keymap' option, where characters are
47484750
mapped in Insert mode.
4749-
Also consider setting 'langnoremap' to avoid 'langmap' applies to
4751+
Also consider resetting 'langremap' to avoid 'langmap' applies to
47504752
characters resulting from a mapping.
47514753
This option cannot be set from a |modeline| or in the |sandbox|, for
47524754
security reasons.
@@ -4809,10 +4811,20 @@ A jump table for the options with a short description can be found at |Q_op|.
48094811
{not in Vi}
48104812
{only available when compiled with the |+langmap|
48114813
feature}
4812-
When on, setting 'langmap' does not apply to characters resulting from
4814+
This is just like 'langremap' but with the value inverted. It only
4815+
exists for backwards compatibility. When setting 'langremap' then
4816+
'langnoremap' is set to the inverted value, and the other way around.
4817+
4818+
*'langremap'* *'lrm'* *'nolangremap'* *'nolrm'*
4819+
'langremap' 'lrm' boolean (default on, reset in |defaults.vim|)
4820+
global
4821+
{not in Vi}
4822+
{only available when compiled with the |+langmap|
4823+
feature}
4824+
When off, setting 'langmap' does not apply to characters resulting from
48134825
a mapping. This basically means, if you noticed that setting
4814-
'langmap' disables some of your mappings, try setting this option.
4815-
This option defaults to off for backwards compatibility. Set it on if
4826+
'langmap' disables some of your mappings, try resetting this option.
4827+
This option defaults to on for backwards compatibility. Set it off if
48164828
that works for you to avoid mappings to break.
48174829

48184830
*'laststatus'* *'ls'*
@@ -6385,6 +6397,8 @@ A jump table for the options with a short description can be found at |Q_op|.
63856397
"inclusive" means that the last character of the selection is included
63866398
in an operation. For example, when "x" is used to delete the
63876399
selection.
6400+
When "old" is used and 'virtualedit' allows the cursor to move past
6401+
the end of line the line break still isn't included.
63886402
Note that when "exclusive" is used and selecting from the end
63896403
backwards, you cannot include the last character of a line, when
63906404
starting in Normal mode and 'virtualedit' empty.

runtime/doc/quickref.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickref.txt* For Vim version 7.4. Last change: 2016 Aug 12
1+
*quickref.txt* For Vim version 7.4. Last change: 2016 Aug 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -770,7 +770,7 @@ Short explanation of each option: *option-list*
770770
'keywordprg' 'kp' program to use for the "K" command
771771
'langmap' 'lmap' alphabetic characters for other language mode
772772
'langmenu' 'lm' language to be used for the menus
773-
'langnoremap' 'lnr' do not apply 'langmap' to mapped characters
773+
'langremap' 'lrm' do apply 'langmap' to mapped characters
774774
'laststatus' 'ls' tells when last window has status lines
775775
'lazyredraw' 'lz' don't redraw while executing macros
776776
'linebreak' 'lbr' wrap long lines at a blank

runtime/doc/tags

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
406406
'langmap' options.txt /*'langmap'*
407407
'langmenu' options.txt /*'langmenu'*
408408
'langnoremap' options.txt /*'langnoremap'*
409+
'langremap' options.txt /*'langremap'*
409410
'laststatus' options.txt /*'laststatus'*
410411
'lazyredraw' options.txt /*'lazyredraw'*
411412
'lbr' options.txt /*'lbr'*
@@ -422,6 +423,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
422423
'lnr' options.txt /*'lnr'*
423424
'loadplugins' options.txt /*'loadplugins'*
424425
'lpl' options.txt /*'lpl'*
426+
'lrm' options.txt /*'lrm'*
425427
'ls' options.txt /*'ls'*
426428
'lsp' options.txt /*'lsp'*
427429
'luadll' options.txt /*'luadll'*
@@ -597,6 +599,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
597599
'nojoinspaces' options.txt /*'nojoinspaces'*
598600
'nojs' options.txt /*'nojs'*
599601
'nolangnoremap' options.txt /*'nolangnoremap'*
602+
'nolangremap' options.txt /*'nolangremap'*
600603
'nolazyredraw' options.txt /*'nolazyredraw'*
601604
'nolbr' options.txt /*'nolbr'*
602605
'nolinebreak' options.txt /*'nolinebreak'*
@@ -605,6 +608,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
605608
'nolnr' options.txt /*'nolnr'*
606609
'noloadplugins' options.txt /*'noloadplugins'*
607610
'nolpl' options.txt /*'nolpl'*
611+
'nolrm' options.txt /*'nolrm'*
608612
'nolz' options.txt /*'nolz'*
609613
'noma' options.txt /*'noma'*
610614
'nomacatsui' options.txt /*'nomacatsui'*
@@ -1612,6 +1616,9 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
16121616
/\{- pattern.txt /*\/\\{-*
16131617
/\~ pattern.txt /*\/\\~*
16141618
/^ pattern.txt /*\/^*
1619+
/_CTRL-L cmdline.txt /*\/_CTRL-L*
1620+
/_CTRL-N cmdline.txt /*\/_CTRL-N*
1621+
/_CTRL-P cmdline.txt /*\/_CTRL-P*
16151622
/atom pattern.txt /*\/atom*
16161623
/bar pattern.txt /*\/bar*
16171624
/branch pattern.txt /*\/branch*
@@ -2286,6 +2293,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
22862293
:filetype-overview filetype.txt /*:filetype-overview*
22872294
:filetype-plugin-off filetype.txt /*:filetype-plugin-off*
22882295
:filetype-plugin-on filetype.txt /*:filetype-plugin-on*
2296+
:filt various.txt /*:filt*
2297+
:filter various.txt /*:filter*
22892298
:fin editing.txt /*:fin*
22902299
:fina eval.txt /*:fina*
22912300
:finally eval.txt /*:finally*
@@ -4524,6 +4533,7 @@ E931 message.txt /*E931*
45244533
E932 eval.txt /*E932*
45254534
E933 eval.txt /*E933*
45264535
E934 sign.txt /*E934*
4536+
E935 eval.txt /*E935*
45274537
E94 windows.txt /*E94*
45284538
E95 message.txt /*E95*
45294539
E96 diff.txt /*E96*
@@ -9312,6 +9322,7 @@ window-size term.txt /*window-size*
93129322
window-size-functions usr_41.txt /*window-size-functions*
93139323
window-tag windows.txt /*window-tag*
93149324
window-variable eval.txt /*window-variable*
9325+
windowid windows.txt /*windowid*
93159326
windowid-variable eval.txt /*windowid-variable*
93169327
windows windows.txt /*windows*
93179328
windows-3.1 os_win32.txt /*windows-3.1*
@@ -9321,6 +9332,7 @@ windows-starting windows.txt /*windows-starting*
93219332
windows.txt windows.txt /*windows.txt*
93229333
windows95 os_win32.txt /*windows95*
93239334
winheight() eval.txt /*winheight()*
9335+
winid windows.txt /*winid*
93249336
winline() eval.txt /*winline()*
93259337
winnr() eval.txt /*winnr()*
93269338
winrestcmd() eval.txt /*winrestcmd()*

runtime/doc/tagsrch.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tagsrch.txt* For Vim version 7.4. Last change: 2013 Oct 01
1+
*tagsrch.txt* For Vim version 7.4. Last change: 2016 Aug 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -454,9 +454,9 @@ The next file in the list is not used when:
454454
This also depends on whether case is ignored. Case is ignored when:
455455
- 'tagcase' is "followic" and 'ignorecase' is set
456456
- 'tagcase' is "ignore"
457-
- 'tagcase' is "smart" and and the pattern only contains lower case
457+
- 'tagcase' is "smart" and the pattern only contains lower case
458458
characters.
459-
- 'tagcase' is "followscs" and 'smartcase' is set and and the pattern only
459+
- 'tagcase' is "followscs" and 'smartcase' is set and the pattern only
460460
contains lower case characters.
461461
If case is not ignored, and the tags file only has a match without matching
462462
case, the next tags file is searched for a match with matching case. If no
@@ -833,24 +833,24 @@ CTRL-W d Open a new window, with the cursor on the first
833833

834834
*:search-args*
835835
Common arguments for the commands above:
836-
[!] When included, find matches in lines that are recognized as comments.
837-
When excluded, a match is ignored when the line is recognized as a
838-
comment (according to 'comments'), or the match is in a C comment (after
839-
"//" or inside /* */). Note that a match may be missed if a line is
840-
recognized as a comment, but the comment ends halfway the line.
841-
And if the line is a comment, but it is not recognized (according to
842-
'comments') a match may be found in it anyway. Example: >
836+
[!] When included, find matches in lines that are recognized as comments.
837+
When excluded, a match is ignored when the line is recognized as a
838+
comment (according to 'comments'), or the match is in a C comment
839+
(after "//" or inside /* */). Note that a match may be missed if a
840+
line is recognized as a comment, but the comment ends halfway the line.
841+
And if the line is a comment, but it is not recognized (according to
842+
'comments') a match may be found in it anyway. Example: >
843843
/* comment
844844
foobar */
845-
< A match for "foobar" is found, because this line is not recognized as a
846-
comment (even though syntax highlighting does recognize it).
847-
Note: Since a macro definition mostly doesn't look like a comment, the
848-
[!] makes no difference for ":dlist", ":dsearch" and ":djump".
849-
[/] A pattern can be surrounded by '/'. Without '/' only whole words are
850-
matched, using the pattern "\<pattern\>". Only after the second '/' a
851-
next command can be appended with '|'. Example: >
845+
< A match for "foobar" is found, because this line is not recognized as
846+
a comment (even though syntax highlighting does recognize it).
847+
Note: Since a macro definition mostly doesn't look like a comment, the
848+
[!] makes no difference for ":dlist", ":dsearch" and ":djump".
849+
[/] A pattern can be surrounded by '/'. Without '/' only whole words are
850+
matched, using the pattern "\<pattern\>". Only after the second '/' a
851+
next command can be appended with '|'. Example: >
852852
:isearch /string/ | echo "the last one"
853-
< For a ":djump", ":dsplit", ":dlist" and ":dsearch" command the pattern
854-
is used as a literal string, not as a search pattern.
853+
< For a ":djump", ":dsplit", ":dlist" and ":dsearch" command the pattern
854+
is used as a literal string, not as a search pattern.
855855

856856
vim:tw=78:ts=8:ft=help:norl:

0 commit comments

Comments
 (0)