Skip to content

Commit 170f2f4

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents b667ee0 + b7a5990 commit 170f2f4

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

+1384
-863
lines changed

runtime/autoload/ada.vim

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
" Description: Perform Ada specific completion & tagging.
33
" Language: Ada (2005)
44
" $Id: ada.vim 887 2008-07-08 14:29:01Z krischik $
5-
" Maintainer: Martin Krischik <[email protected]>
5+
" Maintainer: Mathias Brousset <[email protected]>
6+
" Martin Krischik <[email protected]>
67
" Taylor Venable <[email protected]>
78
" Neil Bird <[email protected]>
89
" Ned Okie <[email protected]>
910
" $Author: krischik $
10-
" $Date: 2008-07-08 16:29:01 +0200 (Di, 08 Jul 2008) $
11+
" $Date: 2017-01-31 20:20:05 +0200 (Mon, 01 Jan 2017) $
1112
" Version: 4.6
1213
" $Revision: 887 $
1314
" $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/autoload/ada.vim $
@@ -23,6 +24,7 @@
2324
" 09.05.2007 MK Session just won't work no matter how much
2425
" tweaking is done
2526
" 19.09.2007 NO still some mapleader problems
27+
" 31.01.2017 MB fix more mapleader problems
2628
" Help Page: ft-ada-functions
2729
"------------------------------------------------------------------------------
2830

@@ -447,7 +449,7 @@ function ada#Switch_Session (New_Session)
447449

448450
if a:New_Session != v:this_session
449451
"
450-
" We actualy got a new session - otherwise there
452+
" We actually got a new session - otherwise there
451453
" is nothing to do.
452454
"
453455
if strlen (v:this_session) > 0
@@ -585,11 +587,11 @@ function ada#Map_Menu (Text, Keys, Command)
585587
\ " :" . a:Command . "<CR>"
586588
execute
587589
\ "nnoremap <buffer>" .
588-
\ escape(l:leader . "a" . a:Keys , '\') .
590+
\ " <Leader>a" . a:Keys .
589591
\" :" . a:Command
590592
execute
591593
\ "inoremap <buffer>" .
592-
\ escape(l:leader . "a" . a:Keys , '\') .
594+
\ " <Learder>a" . a:Keys .
593595
\" <C-O>:" . a:Command
594596
endif
595597
return

runtime/doc/change.txt

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 8.0. Last change: 2016 Nov 19
1+
*change.txt* For Vim version 8.0. Last change: 2017 Feb 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -635,12 +635,14 @@ For other systems the tmpnam() library function is used.
635635
For the {pattern} see |pattern|.
636636
{string} can be a literal string, or something
637637
special; see |sub-replace-special|.
638+
*E939*
638639
When [range] and [count] are omitted, replace in the
639-
current line only.
640-
When [count] is given, replace in [count] lines,
641-
starting with the last line in [range]. When [range]
642-
is omitted start in the current line.
643-
Also see |cmdline-ranges|.
640+
current line only. When [count] is given, replace in
641+
[count] lines, starting with the last line in [range].
642+
When [range] is omitted start in the current line.
643+
[count] must be a positive number. Also see
644+
|cmdline-ranges|.
645+
644646
See |:s_flags| for [flags].
645647

646648
:[range]s[ubstitute] [flags] [count]

runtime/doc/diff.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*diff.txt* For Vim version 8.0. Last change: 2016 Aug 24
1+
*diff.txt* For Vim version 8.0. Last change: 2017 Feb 03
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -131,6 +131,8 @@ file for a moment and come back to the same file and be in diff mode again.
131131
related options only happens in a window that has 'diff' set,
132132
if the current window does not have 'diff' set then no options
133133
in it are changed.
134+
Hidden buffers are also removed from the list of diff'ed
135+
buffers.
134136

135137
The `:diffoff` command resets the relevant options to the values they had when
136138
using `:diffsplit`, `:diffpatch` , `:diffthis`. or starting Vim in diff mode.
@@ -164,7 +166,8 @@ The alignment of text will go wrong when:
164166

165167
All the buffers edited in a window where the 'diff' option is set will join in
166168
the diff. This is also possible for hidden buffers. They must have been
167-
edited in a window first for this to be possible.
169+
edited in a window first for this to be possible. To get rid of the hidden
170+
buffers use `:diffoff!`.
168171

169172
*:DiffOrig* *diff-original-file*
170173
Since 'diff' is a window-local option, it's possible to view the same buffer

runtime/doc/eval.txt

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Jan 28
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Feb 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1329,7 +1329,8 @@ b:changedtick The total number of changes to the current buffer. It is
13291329
: let my_changedtick = b:changedtick
13301330
: call My_Update()
13311331
:endif
1332-
<
1332+
< You cannot change or delete the b:changedtick variable.
1333+
13331334
*window-variable* *w:var* *w:*
13341335
A variable name that is preceded with "w:" is local to the current window. It
13351336
is deleted when the window is closed.
@@ -4371,8 +4372,8 @@ getfontname([{name}]) *getfontname()*
43714372
Only works when the GUI is running, thus not in your vimrc or
43724373
gvimrc file. Use the |GUIEnter| autocommand to use this
43734374
function just after the GUI has started.
4374-
Note that the GTK 2 GUI accepts any font name, thus checking
4375-
for a valid name does not work.
4375+
Note that the GTK GUI accepts any font name, thus checking for
4376+
a valid name does not work.
43764377

43774378
getfperm({fname}) *getfperm()*
43784379
The result is a String, which is the read, write, and execute
@@ -5978,7 +5979,7 @@ printf({fmt}, {expr1} ...) *printf()*
59785979
%e floating point number as 1.23e3, inf, -inf or nan
59795980
%E floating point number as 1.23E3, INF, -INF or NAN
59805981
%g floating point number, as %f or %e depending on value
5981-
%G floating point number, as %f or %E depending on value
5982+
%G floating point number, as %F or %E depending on value
59825983
%% the % character itself
59835984

59845985
Conversion specifications start with '%' and end with the
@@ -7807,6 +7808,8 @@ test_settime({expr}) *test_settime()*
78077808
Set the time Vim uses internally. Currently only used for
78087809
timestamps in the history, as they are used in viminfo, and
78097810
for undo.
7811+
Using a value of 1 makes Vim not sleep after a warning or
7812+
error message.
78107813
{expr} must evaluate to a number. When the value is zero the
78117814
normal behavior is restored.
78127815

@@ -8467,6 +8470,7 @@ transparency Compiled with 'transparency' support.
84678470
ttyin input is a terminal (tty)
84688471
ttyout output is a terminal (tty)
84698472
unix Unix version of Vim.
8473+
unnamedplus Compiled with support for "unnamedplus" in 'clipboard'
84708474
user_commands User-defined commands.
84718475
vertsplit Compiled with vertically split windows |:vsplit|.
84728476
vim_starting True while initial source'ing takes place. |startup|
@@ -8970,6 +8974,11 @@ This does NOT work: >
89708974
value and the global value are changed.
89718975
Example: >
89728976
:let &path = &path . ',/usr/local/include'
8977+
< This also works for terminal codes in the form t_xx.
8978+
But only for alphanumerical names. Example: >
8979+
:let &t_k1 = "\<Esc>[234;"
8980+
< When the code does not exist yet it will be created as
8981+
a terminal key code, there is no error.
89738982

89748983
:let &{option-name} .= {expr1}
89758984
For a string option: Append {expr1} to the value.
@@ -9077,9 +9086,12 @@ This does NOT work: >
90779086
:lockvar v
90789087
:let v = 'asdf' " fails!
90799088
:unlet v
9080-
< *E741*
9089+
< *E741* *E940*
90819090
If you try to change a locked variable you get an
9082-
error message: "E741: Value is locked: {name}"
9091+
error message: "E741: Value is locked: {name}".
9092+
If you try to lock or unlock a built-in variable you
9093+
get an error message: "E940: Cannot lock or unlock
9094+
variable {name}".
90839095

90849096
[depth] is relevant when locking a |List| or
90859097
|Dictionary|. It specifies how deep the locking goes:

runtime/doc/helphelp.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*helphelp.txt* For Vim version 8.0. Last change: 2016 Apr 01
1+
*helphelp.txt* For Vim version 8.0. Last change: 2017 Feb 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -28,10 +28,16 @@ Help on help files *helphelp*
2828

2929
*{subject}* *E149* *E661*
3030
:h[elp] {subject} Like ":help", additionally jump to the tag {subject}.
31-
{subject} can include wildcards like "*", "?" and
31+
For example: >
32+
:help options
33+
34+
< {subject} can include wildcards such as "*", "?" and
3235
"[a-z]":
3336
:help z? jump to help for any "z" command
3437
:help z. jump to the help for "z."
38+
But when a tag exists it is taken literally:
39+
:help :? jump to help for ":?"
40+
3541
If there is no full match for the pattern, or there
3642
are several matches, the "best" match will be used.
3743
A sophisticated algorithm is used to decide which
@@ -68,18 +74,19 @@ Help on help files *helphelp*
6874
example to find help for CTRL-V in Insert mode: >
6975
:help i^V
7076
<
71-
To use a regexp |pattern|, first do ":help" and then
77+
It is also possible to first do ":help" and then
7278
use ":tag {pattern}" in the help window. The
7379
":tnext" command can then be used to jump to other
7480
matches, "tselect" to list matches and choose one. >
75-
:help index| :tse z.
81+
:help index
82+
:tselect /.*mode
7683
7784
< When there is no argument you will see matches for
7885
"help", to avoid listing all possible matches (that
7986
would be very slow).
8087
The number of matches displayed is limited to 300.
8188

82-
This command can be followed by '|' and another
89+
The `:help` command can be followed by '|' and another
8390
command, but you don't need to escape the '|' inside a
8491
help command. So these both work: >
8592
:help |

runtime/doc/if_pyth.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_pyth.txt* For Vim version 8.0. Last change: 2017 Jan 28
1+
*if_pyth.txt* For Vim version 8.0. Last change: 2017 Feb 17
22

33

44
VIM REFERENCE MANUAL by Paul Moore
@@ -731,9 +731,11 @@ To use the Python interface the Python DLL must be in your search path. In a
731731
console window type "path" to see what directories are used. The 'pythondll'
732732
or 'pythonthreedll' option can be also used to specify the Python DLL.
733733

734-
The name of the DLL must match the Python version Vim was compiled with.
735-
Currently the name is "python24.dll". That is for Python 2.4. To know for
736-
sure edit "gvim.exe" and search for "python\d*.dll\c".
734+
The name of the DLL should match the Python version Vim was compiled with.
735+
Currently the name for Python 2 is "python27.dll", that is for Python 2.7.
736+
That is the default value for 'pythondll'. For Python 3 it is python35.dll
737+
(Python 3.5). To know for sure edit "gvim.exe" and search for
738+
"python\d*.dll\c".
737739

738740

739741
Unix ~

runtime/doc/options.txt

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.0. Last change: 2017 Jan 28
1+
*options.txt* For Vim version 8.0. Last change: 2017 Feb 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2697,7 +2697,7 @@ A jump table for the options with a short description can be found at |Q_op|.
26972697
This option cannot be set from a |modeline|. It would most likely
26982698
corrupt the text.
26992699

2700-
NOTE: For MacVim and GTK+ 2 it is highly recommended to set 'encoding'
2700+
NOTE: For MacVim and GTK+, it is highly recommended to set 'encoding'
27012701
to "utf-8". Although care has been taken to allow different values of
27022702
'encoding', "utf-8" is the natural choice for the environment and
27032703
avoids unnecessary conversion overhead. "utf-8" has not been made
@@ -3695,6 +3695,14 @@ A jump table for the options with a short description can be found at |Q_op|.
36953695
On systems where 'guifontset' is supported (X11) and 'guifontset' is
36963696
not empty, then 'guifont' is not used.
36973697

3698+
Note: As to the GTK GUIs, no error is given against any invalid names,
3699+
and the first element of the list is always picked up and made use of.
3700+
This is because, instead of identifying a given name with a font, the
3701+
GTK GUIs use it to construct a pattern and try to look up a font which
3702+
best matches the pattern among available fonts, and this way, the
3703+
matching never fails. An invalid name doesn't matter because a number
3704+
of font properties other than name will do to get the matching done.
3705+
36983706
Spaces after a comma are ignored. To include a comma in a font name
36993707
precede it with a backslash. Setting an option requires an extra
37003708
backslash before a space and a backslash. See also
@@ -3720,7 +3728,7 @@ A jump table for the options with a short description can be found at |Q_op|.
37203728
The font name depends on the GUI used. See |setting-guifont| for a
37213729
way to set 'guifont' for various systems.
37223730

3723-
For the GTK+ 2 GUI the font name looks like this: >
3731+
For the GTK+ 2 and 3 GUIs, the font name looks like this: >
37243732
:set guifont=Andale\ Mono\ 11
37253733
< That's all. XLFDs are not used. For Chinese this is reported to work
37263734
well: >
@@ -3729,15 +3737,17 @@ A jump table for the options with a short description can be found at |Q_op|.
37293737
set guifontwide=Microsoft\ Yahei\ 12,WenQuanYi\ Zen\ Hei\ 12
37303738
endif
37313739
<
3732-
For Mac OS X you can use something like this: >
3740+
(Replace gui_gtk2 with gui_gtk3 for the GTK+ 3 GUI)
3741+
3742+
For Mac OSX you can use something like this: >
37333743
:set guifont=Monaco:h10
37343744
< Also see 'macatsui', it can help fix display problems {not in MacVim}.
37353745
In MacVim, fonts with spaces are set like this: >
37363746
:set guifont=DejaVu\ Sans\ Mono:h13
37373747
<
37383748
*E236*
37393749
Note that the fonts must be mono-spaced (all characters have the same
3740-
width). An exception is MacVim and GTK 2: all fonts are accepted, but
3750+
width). An exception is MacVim and GTK: all fonts are accepted, but
37413751
mono-spaced fonts look best.
37423752

37433753
To preview a font on X11, you might be able to use the "xfontsel"
@@ -3776,7 +3786,7 @@ A jump table for the options with a short description can be found at |Q_op|.
37763786
{not in Vi}
37773787
{only available when compiled with GUI enabled and
37783788
with the |+xfontset| feature}
3779-
{not available in the GTK+ 2 GUI}
3789+
{not available in the GTK+ GUI}
37803790
When not empty, specifies two (or more) fonts to be used. The first
37813791
one for normal English, the second one for your special language. See
37823792
|xfontset|.
@@ -3805,7 +3815,7 @@ A jump table for the options with a short description can be found at |Q_op|.
38053815
Note: The size of these fonts must be exactly twice as wide as the one
38063816
specified with 'guifont' and the same height.
38073817

3808-
All GUI versions but MacVim and GTK+ 2:
3818+
All GUI versions but MacVim and GTK+:
38093819

38103820
'guifontwide' is only used when 'encoding' is set to "utf-8" and
38113821
'guifontset' is empty or invalid.
@@ -3819,7 +3829,7 @@ A jump table for the options with a short description can be found at |Q_op|.
38193829
that font will be used for all wide fonts. However, if a glyph is
38203830
not available in the wide font, then font substitution is still used.
38213831

3822-
GTK+ 2 GUI only: *guifontwide_gtk2*
3832+
GTK+ GUI only: *guifontwide_gtk2*
38233833

38243834
If set and valid, 'guifontwide' is always used for double width
38253835
characters, even if 'encoding' is not set to "utf-8".
@@ -7790,7 +7800,7 @@ A jump table for the options with a short description can be found at |Q_op|.
77907800

77917801
*'termencoding'* *'tenc'*
77927802
'termencoding' 'tenc' string (default ""
7793-
with GTK+ 2 and MacVim GUIs: "utf-8"
7803+
with GTK+ and MacVim GUIs: "utf-8"
77947804
with Macintosh (Carbon) GUI: "macroman")
77957805
global
77967806
{only available when compiled with the |+multi_byte|
@@ -7804,7 +7814,7 @@ A jump table for the options with a short description can be found at |Q_op|.
78047814
In the Win32 console version the default value is the console codepage
78057815
when it differs from the ANSI codepage.
78067816
*E617*
7807-
Note: This does not apply to the GTK+ 2 and MacVim GUIs. After the
7817+
Note: This does not apply to the GTK+ and MacVim GUIs. After the
78087818
GUI has been successfully initialized, 'termencoding' is forcibly set
78097819
to "utf-8". Any attempts to set a different value will be rejected,
78107820
and an error message is shown.
@@ -8088,7 +8098,7 @@ A jump table for the options with a short description can be found at |Q_op|.
80888098
'toolbariconsize' 'tbis' string (default "small")
80898099
global
80908100
{not in Vi}
8091-
{only in the GTK+ 2 and MacVim GUIs}
8101+
{only in the GTK+ and MacVim GUIs}
80928102
Controls the size of toolbar icons. The possible values are:
80938103
tiny Use tiny icons.
80948104
small Use small icons (default).

runtime/doc/repeat.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -305,6 +305,11 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
305305
Mark) in utf-8 format Vim will recognize it, no need
306306
to use ":scriptencoding utf-8" then.
307307

308+
If you set the 'encoding' option in your |.vimrc|,
309+
`:scriptencoding` must be placed after that. E.g.: >
310+
set encoding=utf-8
311+
scriptencoding utf-8
312+
<
308313
When compiled without the |+multi_byte| feature this
309314
command is ignored.
310315
{not in Vi}

0 commit comments

Comments
 (0)