Skip to content

Commit 39c08b5

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 1d10a62 + 77324fc commit 39c08b5

30 files changed

+919
-221
lines changed

runtime/doc/editing.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 7.4. Last change: 2016 Jan 03
1+
*editing.txt* For Vim version 7.4. Last change: 2016 Jan 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -639,6 +639,7 @@ list of the current window.
639639
:0argadd x x a b c
640640
:1argadd x a x b c
641641
:$argadd x a b c x
642+
And after the last one:
642643
:+2argadd y a b c x y
643644
There is no check for duplicates, it is possible to
644645
add a file to the argument list twice.
@@ -1458,6 +1459,16 @@ using zip, "[blowfish]" when using blowfish, etc.
14581459
When writing an undo file, the same key and method will be used for the text
14591460
in the undo file. |persistent-undo|.
14601461

1462+
To test for blowfish support you can use these conditions: >
1463+
has('crypt-blowfish')
1464+
has('crypt-blowfish2')
1465+
This works since Vim 7.4.1099 while blowfish support was added earlier.
1466+
Thus the condition failing doesn't mean blowfish is not supported. You can
1467+
test for blowfish with: >
1468+
v:version >= 703
1469+
And for blowfish2 with: >
1470+
v:version > 704 || (v:version == 704 && has('patch401'))
1471+
<
14611472
*E817* *E818* *E819* *E820*
14621473
When encryption does not work properly, you would be able to write your text
14631474
to a file and never be able to read it back. Therefore a test is performed to

runtime/doc/eval.txt

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.4. Last change: 2016 Jan 16
1+
*eval.txt* For Vim version 7.4. Last change: 2016 Jan 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -873,7 +873,7 @@ cursor: >
873873
:let c = getline(".")[col(".") - 1]
874874
875875
If the length of the String is less than the index, the result is an empty
876-
String. A negative index always results in an empty string (reason: backwards
876+
String. A negative index always results in an empty string (reason: backward
877877
compatibility). Use [-1:] to get the last byte.
878878

879879
If expr8 is a |List| then it results the item at index expr1. See |list-index|
@@ -1851,7 +1851,7 @@ getcmdpos() Number return cursor position in command-line
18511851
getcmdtype() String return current command-line type
18521852
getcmdwintype() String return current command-line window type
18531853
getcurpos() List position of the cursor
1854-
getcwd() String the current working directory
1854+
getcwd( [{winnr} [, {tabnr}]]) String get the current working directory
18551855
getfontname( [{name}]) String name of font being used
18561856
getfperm( {fname}) String file permissions of file {fname}
18571857
getfsize( {fname}) Number size in bytes of file {fname}
@@ -1882,7 +1882,8 @@ globpath( {path}, {expr} [, {nosuf} [, {list} [, {alllinks}]]])
18821882
String do glob({expr}) for all dirs in {path}
18831883
has( {feature}) Number TRUE if feature {feature} supported
18841884
has_key( {dict}, {key}) Number TRUE if {dict} has entry {key}
1885-
haslocaldir() Number TRUE if current window executed |:lcd|
1885+
haslocaldir( [{winnr} [, {tabnr}]])
1886+
Number TRUE if the window executed |:lcd|
18861887
hasmapto( {what} [, {mode} [, {abbr}]])
18871888
Number TRUE if mapping to {what} exists
18881889
histadd( {history},{item}) String add an item to a history
@@ -1950,6 +1951,7 @@ nextnonblank( {lnum}) Number line nr of non-blank line >= {lnum}
19501951
nr2char( {expr}[, {utf8}]) String single char with ASCII/UTF8 value {expr}
19511952
or( {expr}, {expr}) Number bitwise OR
19521953
pathshorten( {expr}) String shorten directory names in a path
1954+
perleval( {expr}) any evaluate |Perl| expression
19531955
pow( {x}, {y}) Float {x} to the power of {y}
19541956
prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum}
19551957
printf( {fmt}, {expr1}...) String format text
@@ -3521,8 +3523,16 @@ getcurpos() Get the position of the cursor. This is like getpos('.'), but
35213523
call setpos('.', save_cursor)
35223524
<
35233525
*getcwd()*
3524-
getcwd() The result is a String, which is the name of the current
3526+
getcwd([{winnr} [, {tabnr}]])
3527+
The result is a String, which is the name of the current
35253528
working directory.
3529+
Without arguments, for the current window.
3530+
3531+
With {winnr} return the local current directory of this window
3532+
in the current tab page.
3533+
With {winnr} and {tabnr} return the local current directory of
3534+
the window in the specified tab page.
3535+
Return an empty string if the arguments are invalid.
35263536

35273537
getfsize({fname}) *getfsize()*
35283538
The result is a Number, which is the size in bytes of the
@@ -3858,9 +3868,15 @@ has_key({dict}, {key}) *has_key()*
38583868
The result is a Number, which is 1 if |Dictionary| {dict} has
38593869
an entry with key {key}. Zero otherwise.
38603870

3861-
haslocaldir() *haslocaldir()*
3862-
The result is a Number, which is 1 when the current
3863-
window has set a local path via |:lcd|, and 0 otherwise.
3871+
haslocaldir([{winnr} [, {tabnr}]]) *haslocaldir()*
3872+
The result is a Number, which is 1 when the window has set a
3873+
local path via |:lcd|, and 0 otherwise.
3874+
3875+
Without arguments use the current window.
3876+
With {winnr} use this window in the current tab page.
3877+
With {winnr} and {tabnr} use the window in the specified tab
3878+
page.
3879+
Return 0 if the arguments are invalid.
38643880

38653881
hasmapto({what} [, {mode} [, {abbr}]]) *hasmapto()*
38663882
The result is a Number, which is 1 if there is a mapping that
@@ -4547,8 +4563,8 @@ matchadd({group}, {pattern}[, {priority}[, {id} [, {dict}]]])
45474563
respectively. If the {id} argument is not specified or -1,
45484564
|matchadd()| automatically chooses a free ID.
45494565

4550-
The optional {dict} argmument allows for further custom
4551-
values. Currently this is used to specify a match specifc
4566+
The optional {dict} argument allows for further custom
4567+
values. Currently this is used to specify a match specific
45524568
conceal character that will be shown for |hl-Conceal|
45534569
highlighted matches. The dict can have the following members:
45544570

@@ -4778,6 +4794,17 @@ pathshorten({expr}) *pathshorten()*
47784794
< ~/.v/a/myfile.vim ~
47794795
It doesn't matter if the path exists or not.
47804796

4797+
perleval({expr}) *perleval()*
4798+
Evaluate Perl expression {expr} in scalar context and return
4799+
its result converted to Vim data structures. If value can't be
4800+
converted, it is returned as a string Perl representation.
4801+
Note: If you want an array or hash, {expr} must return a
4802+
reference to it.
4803+
Example: >
4804+
:echo perleval('[1 .. 4]')
4805+
< [1, 2, 3, 4]
4806+
{only available when compiled with the |+perl| feature}
4807+
47814808
pow({x}, {y}) *pow()*
47824809
Return the power of {x} to the exponent {y} as a |Float|.
47834810
{x} and {y} must evaluate to a |Float| or a |Number|.
@@ -5292,7 +5319,7 @@ search({pattern} [, {flags} [, {stopline} [, {timeout}]]]) *search()*
52925319

52935320
'ignorecase', 'smartcase' and 'magic' are used.
52945321

5295-
When the 'z' flag is not given seaching always starts in
5322+
When the 'z' flag is not given, searching always starts in
52965323
column zero and then matches before the cursor are skipped.
52975324
When the 'c' flag is present in 'cpo' the next search starts
52985325
after the match. Without the 'c' flag the next search starts
@@ -7658,7 +7685,7 @@ This does NOT work: >
76587685
From Vim version 4.5 until 5.0, every Ex command in
76597686
between the ":if" and ":endif" is ignored. These two
76607687
commands were just to allow for future expansions in a
7661-
backwards compatible way. Nesting was allowed. Note
7688+
backward compatible way. Nesting was allowed. Note
76627689
that any ":else" or ":elseif" was ignored, the "else"
76637690
part was not executed either.
76647691

runtime/doc/if_mzsch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_mzsch.txt* For Vim version 7.4. Last change: 2012 Dec 17
1+
*if_mzsch.txt* For Vim version 7.4. Last change: 2016 Jan 16
22

33

44
VIM REFERENCE MANUAL by Sergey Khorev

runtime/doc/mlang.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*mlang.txt* For Vim version 7.4. Last change: 2012 Jan 15
1+
*mlang.txt* For Vim version 7.4. Last change: 2016 Jan 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -97,13 +97,15 @@ If you used the self-installing .exe file, message translations should work
9797
already. Otherwise get the libintl.dll file if you don't have it yet:
9898

9999
http://sourceforge.net/projects/gettext
100+
Or:
101+
https://mlocati.github.io/gettext-iconv-windows/
100102

101103
This also contains tools xgettext, msgformat and others.
102104

103105
libintl.dll should be placed in same directory with (g)vim.exe, or some
104-
place where PATH environment value describe. Message files (vim.mo)
105-
have to be placed in "$VIMRUNTIME/lang/xx/LC_MESSAGES", where "xx" is the
106-
abbreviation of the language (mostly two letters).
106+
place where PATH environment value describe. Vim also finds libintl-8.dll.
107+
Message files (vim.mo) have to be placed in "$VIMRUNTIME/lang/xx/LC_MESSAGES",
108+
where "xx" is the abbreviation of the language (mostly two letters).
107109

108110
If you write your own translations you need to generate the .po file and
109111
convert it to a .mo file. You need to get the source distribution and read

runtime/doc/tags

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,12 +3404,18 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
34043404
== change.txt /*==*
34053405
> change.txt /*>*
34063406
>> change.txt /*>>*
3407+
>backtrace repeat.txt /*>backtrace*
3408+
>bt repeat.txt /*>bt*
34073409
>cont repeat.txt /*>cont*
3410+
>down repeat.txt /*>down*
34083411
>finish repeat.txt /*>finish*
3412+
>frame repeat.txt /*>frame*
34093413
>interrupt repeat.txt /*>interrupt*
34103414
>next repeat.txt /*>next*
34113415
>quit repeat.txt /*>quit*
34123416
>step repeat.txt /*>step*
3417+
>up repeat.txt /*>up*
3418+
>where repeat.txt /*>where*
34133419
? pattern.txt /*?*
34143420
?<CR> pattern.txt /*?<CR>*
34153421
@ repeat.txt /*@*
@@ -7179,6 +7185,7 @@ mzscheme-examples if_mzsch.txt /*mzscheme-examples*
71797185
mzscheme-funcref if_mzsch.txt /*mzscheme-funcref*
71807186
mzscheme-mzeval if_mzsch.txt /*mzscheme-mzeval*
71817187
mzscheme-sandbox if_mzsch.txt /*mzscheme-sandbox*
7188+
mzscheme-setup if_mzsch.txt /*mzscheme-setup*
71827189
mzscheme-threads if_mzsch.txt /*mzscheme-threads*
71837190
mzscheme-vim if_mzsch.txt /*mzscheme-vim*
71847191
mzscheme-vimext if_mzsch.txt /*mzscheme-vimext*
@@ -7625,6 +7632,7 @@ perl-overview if_perl.txt /*perl-overview*
76257632
perl-patterns pattern.txt /*perl-patterns*
76267633
perl-using if_perl.txt /*perl-using*
76277634
perl.vim syntax.txt /*perl.vim*
7635+
perleval() eval.txt /*perleval()*
76287636
persistent-undo undo.txt /*persistent-undo*
76297637
pexpr-option print.txt /*pexpr-option*
76307638
pfn-option print.txt /*pfn-option*

runtime/doc/todo.txt

Lines changed: 2 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 7.4. Last change: 2016 Jan 15
1+
*todo.txt* For Vim version 7.4. Last change: 2016 Jan 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -97,8 +97,6 @@ Should use /usr/local/share/applications or /usr/share/applications.
9797
Or use $XDG_DATA_DIRS.
9898
Also need to run update-desktop-database (Kuriyama Kazunobu, 2015 Nov 4)
9999

100-
Add has('crypt-blowfish') and has('crypt-blowfish2') (Smu Johnson)
101-
102100
Access to uninitialized memory in match_backref() regexp_nda.c:4882
103101
(Dominique Pelle, 2015 Nov 6)
104102

@@ -125,42 +123,16 @@ github with a URL like this:
125123
https://github.com/vim/vim/compare/v7.4.920%5E...v7.4.920.diff
126124
Diff for version.c contains more context, can't skip a patch.
127125
>
128-
Can src/GvimExt/Make_cyg.mak be removed?
129-
Same for src/xxd/Make_cyg.mak
130-
131126
When t_Co is changed from termresponse, the OptionSet autocmmand event isn't
132127
triggered. Use the code from the end of set_num_option() in
133128
set_color_count().
134129

135130
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
136131

137-
Patch to fix cursor position in right-left mode with concealing.
138-
(Hirohito Higashi, 2016 Jan 13)
139-
140132
Plugin to use Vim in MANPAGER. Konfekt, PR #491
141133

142134
Using uninitialized memory. (Dominique Pelle, 2015 Nov 4)
143135

144-
Patch for explaining the help. (Christian Brabandt, 2015 Jan 8)
145-
Should be in the user manual?
146-
147-
Patch to recognize string slice for variable followed by colon.
148-
(Hirohito Higashi, 2015 Nov 24)
149-
150-
Patch to add debug backtrace. (Alberto Fanjul, 2015 Sep 27)
151-
Update 2016 Jan 2. Issue #433
152-
153-
Patch to gvim.nsi for appveyor build. (Ken Takata, 2016 Jan 12)
154-
155-
Patch to improve behavior of dead keys on MS-Windows. (John Wellesz, 2015 Aug
156-
25) https://github.com/vim/vim/pull/399.diff
157-
158-
Patch to make mzscheme (racket) interface work. (Yukihiro Nakadaira, 2015 Jan
159-
10) Doesn't work for me, need to build from source. Include anyway?
160-
Additional patch by Ken Takata, 2016 Jan 13.
161-
Merged patch by Yasuhiro Nakadaira,, 2016 Jan 14.
162-
Update for INSSTALLpc.txt by Ken Takata, Jan 14.
163-
164136
MS-Windows: When editing a file with a leading space, writing it uses the
165137
wrong name. (Aram, 2014 Nov 7) Vim 7.4.
166138

@@ -171,19 +143,12 @@ Half-finished patch to fix the Problem using cgn to change a search hit when
171143
replacement includes hit. Reported by John Beckett, fix by Christian Brabandt,
172144
2016 Jan 11.
173145

174-
Patch to fix pointer cast warning in VS2015. (Mike Williams, 2015 Dec 13)
175-
Patch to make building GVimExt with VS2015. (Mike Williams, 2015 Dec 13)
176-
177146
Value returned by virtcol() changes depending on how lines wrap. This is
178147
inconsistent with the documentation.
179148

180-
Patch to add perleval(). (Damien, 2015 Dec 8, update 2016 Jan 4)
181-
182149
Can we cache the syntax attributes, so that updates for 'relativenumber' and
183150
'cursorline'/'cursorcolumn' are a lot faster?
184151

185-
Patch to add window and tab arguments to getcwd(). (Thinca, 2015 Nov 15)
186-
187152
Build with Python on Mac does not always use the right library.
188153
(Kazunobu Kuriyama, 2015 Mar 28)
189154

@@ -286,7 +251,7 @@ Is this the right solution? Need to cleanup langmap behavior:
286251
- Remove LANGMAP_ADJUST() in other parts of the code. Make sure the mode is
287252
covered by the above change.
288253
So that replaying the register doesn't use keymap/langmap and still does the
289-
same thing. Remarks on issue 543.
254+
same thing. Remarks on issue 543 (Roland Puntaier).
290255

291256
Patch to add grepfile(). (Scott Prager, 2015 May 26)
292257
Work in progress.

0 commit comments

Comments
 (0)