Skip to content

Commit f6c6992

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 4d505ad + 8a633e3 commit f6c6992

56 files changed

Lines changed: 1561 additions & 595 deletions

Some content is hidden

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

runtime/autoload/netrw.vim

Lines changed: 243 additions & 259 deletions
Large diffs are not rendered by default.

runtime/doc/autocmd.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 7.4. Last change: 2016 Mar 26
1+
*autocmd.txt* For Vim version 7.4. Last change: 2016 Apr 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -539,6 +539,9 @@ CursorHold When the user doesn't press a key for the time
539539
versions}
540540
*CursorHoldI*
541541
CursorHoldI Just like CursorHold, but in Insert mode.
542+
Not triggered when waiting for another key,
543+
e.g. after CTRL-V, and not when in CTRL-X mode
544+
|insert_expand|.
542545

543546
*CursorMoved*
544547
CursorMoved After the cursor was moved in Normal or Visual

runtime/doc/change.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 7.4. Last change: 2016 Mar 08
1+
*change.txt* For Vim version 7.4. Last change: 2016 Apr 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -852,7 +852,7 @@ Examples: >
852852
:s/abcde/abc^Mde/ modifies "abcde" to "abc", "de" (two lines)
853853
:s/$/\^M/ modifies "abcde" to "abcde^M"
854854
:s/\w\+/\u\0/g modifies "bla bla" to "Bla Bla"
855-
:s/\w\+/\L\u/g modifies "BLA bla" to "Bla Bla"
855+
:s/\w\+/\L\u\0/g modifies "BLA bla" to "Bla Bla"
856856
857857
Note: "\L\u" can be used to capitalize the first letter of a word. This is
858858
not compatible with Vi and older versions of Vim, where the "\u" would cancel
@@ -1205,7 +1205,7 @@ name '"'. This means you have to type two double quotes. Writing to the ""
12051205
register writes to register "0.
12061206
{Vi: register contents are lost when changing files, no '"'}
12071207

1208-
2. Numbered registers "0 to "9 *quote_number* *quote0* *quote1*
1208+
2. Numbered registers "0 to "9 *quote_number* *quote0* *quote1*
12091209
*quote2* *quote3* *quote4* *quote9*
12101210
Vim fills these registers with text from yank and delete commands.
12111211
Numbered register 0 contains the text from the most recent yank command,

runtime/doc/channel.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,10 @@ Note that a channel is closed in three stages:
200200
When the channel can't be opened you will get an error message. There is a
201201
difference between MS-Windows and Unix: On Unix when the port doesn't exist
202202
ch_open() fails quickly. On MS-Windows "waittime" applies.
203-
*E898* *E899* *E900* *E901* *E902*
203+
*E898* *E901* *E902*
204204

205205
If there is an error reading or writing a channel it will be closed.
206-
*E896* *E630* *E631*
206+
*E630* *E631*
207207

208208
==============================================================================
209209
4. Using a JSON or JS channel *channel-use*

runtime/doc/editing.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ Examples: >
12211221

12221222
If you want to always use ":confirm", set the 'confirm' option.
12231223

1224-
*:browse* *:bro* *E338* *E614* *E615* *E616* *E578*
1224+
*:browse* *:bro* *E338* *E614* *E615* *E616*
12251225
:bro[wse] {command} Open a file selection dialog for an argument to
12261226
{command}. At present this works for |:e|, |:w|,
12271227
|:wall|, |:wq|, |:wqall|, |:x|, |:xall|, |:exit|,

runtime/doc/eval.txt

Lines changed: 40 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.4. Last change: 2016 Apr 14
1+
*eval.txt* For Vim version 7.4. Last change: 2016 Apr 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -752,7 +752,7 @@ A |Dictionary| can only be compared with a |Dictionary| and only "equal", "not
752752
equal" and "is" can be used. This compares the key/values of the |Dictionary|
753753
recursively. Ignoring case means case is ignored when comparing item values.
754754

755-
*E693* *E694*
755+
*E694*
756756
A |Funcref| can only be compared with a |Funcref| and only "equal" and "not
757757
equal" can be used. Case is never ignored. Whether arguments or a Dictionary
758758
are bound (with a partial) is ignored. This is so that when a function is
@@ -2127,14 +2127,17 @@ sqrt({expr}) Float square root of {expr}
21272127
str2float({expr}) Float convert String to Float
21282128
str2nr({expr} [, {base}]) Number convert String to Number
21292129
strchars({expr} [, {skipcc}]) Number character length of the String {expr}
2130+
strcharpart({str}, {start}[, {len}])
2131+
String {len} characters of {str} at {start}
21302132
strdisplaywidth({expr} [, {col}]) Number display length of the String {expr}
21312133
strftime({format}[, {time}]) String time in specified format
2134+
strgetchar({str}, {index}) Number get char {index} from {str}
21322135
stridx({haystack}, {needle}[, {start}])
21332136
Number index of {needle} in {haystack}
21342137
string({expr}) String String representation of {expr} value
21352138
strlen({expr}) Number length of the String {expr}
2136-
strpart({src}, {start}[, {len}])
2137-
String {len} characters of {src} at {start}
2139+
strpart({str}, {start}[, {len}])
2140+
String {len} characters of {str} at {start}
21382141
strridx({haystack}, {needle} [, {start}])
21392142
Number last index of {needle} in {haystack}
21402143
strtrans({expr}) String translate string to make it printable
@@ -2551,7 +2554,9 @@ byteidx({expr}, {nr}) *byteidx()*
25512554
same: >
25522555
let s = strpart(str, byteidx(str, 3))
25532556
echo strpart(s, 0, byteidx(s, 1))
2554-
< If there are less than {nr} characters -1 is returned.
2557+
< Also see |strgetchar()| and |strcharpart()|.
2558+
2559+
If there are less than {nr} characters -1 is returned.
25552560
If there are exactly {nr} characters the length of the string
25562561
in bytes is returned.
25572562

@@ -3418,6 +3423,10 @@ feedkeys({string} [, {mode}]) *feedkeys()*
34183423
will behave as if <Esc> is typed, to avoid getting
34193424
stuck, waiting for a character to be typed before the
34203425
script continues.
3426+
'!' When used with 'x' will not end Insert mode. Can be
3427+
used in a test when a timer is set to exit Insert mode
3428+
a little later. Useful for testing CursorHoldI.
3429+
34213430
Return value is always 0.
34223431

34233432
filereadable({file}) *filereadable()*
@@ -4100,16 +4109,21 @@ getreg([{regname} [, 1 [, {list}]]]) *getreg()*
41004109
The result is a String, which is the contents of register
41014110
{regname}. Example: >
41024111
:let cliptext = getreg('*')
4103-
< getreg('=') returns the last evaluated value of the expression
4112+
< When {regname} was not set the result is a empty string.
4113+
4114+
getreg('=') returns the last evaluated value of the expression
41044115
register. (For use in maps.)
41054116
getreg('=', 1) returns the expression itself, so that it can
41064117
be restored with |setreg()|. For other registers the extra
41074118
argument is ignored, thus you can always give it.
4108-
If {list} is present and non-zero result type is changed to
4109-
|List|. Each list item is one text line. Use it if you care
4119+
4120+
If {list} is present and non-zero, the result type is changed
4121+
to |List|. Each list item is one text line. Use it if you care
41104122
about zero bytes possibly present inside register: without
41114123
third argument both NLs and zero bytes are represented as NLs
41124124
(see |NL-used-for-Nul|).
4125+
When the register was not set an empty list is returned.
4126+
41134127
If {regname} is not specified, |v:register| is used.
41144128

41154129

@@ -5590,7 +5604,6 @@ pumvisible() *pumvisible()*
55905604
This can be used to avoid some things that would remove the
55915605
popup menu.
55925606

5593-
*E860*
55945607
py3eval({expr}) *py3eval()*
55955608
Evaluate Python expression {expr} and return its result
55965609
converted to Vim data structures.
@@ -6652,7 +6665,6 @@ strchars({expr} [, {skipcc}]) *strchars()*
66526665
counted separately.
66536666
When {skipcc} set to 1, Composing characters are ignored.
66546667
Also see |strlen()|, |strdisplaywidth()| and |strwidth()|.
6655-
66566668

66576669
{skipcc} is only available after 7.4.755. For backward
66586670
compatibility, you can define a wrapper function: >
@@ -6670,6 +6682,13 @@ strchars({expr} [, {skipcc}]) *strchars()*
66706682
endfunction
66716683
endif
66726684
<
6685+
strcharpart({src}, {start}[, {len}]) *strcharpart()*
6686+
Like |strpart()| but using character index and length instead
6687+
of byte index and length.
6688+
When a character index is used where a character does not
6689+
exist it is assumed to be one byte. For example: >
6690+
strcharpart('abc', -1, 2)
6691+
< results in 'a'.
66736692

66746693
strdisplaywidth({expr}[, {col}]) *strdisplaywidth()*
66756694
The result is a Number, which is the number of display cells
@@ -6703,6 +6722,12 @@ strftime({format} [, {time}]) *strftime()*
67036722
< Not available on all systems. To check use: >
67046723
:if exists("*strftime")
67056724
6725+
strgetchar({str}, {index}) *strgetchar()*
6726+
Get character {index} from {str}. This uses a character
6727+
index, not a byte index. Composing characters are considered
6728+
separate characters here.
6729+
Also see |strcharpart()| and |strchars()|.
6730+
67066731
stridx({haystack}, {needle} [, {start}]) *stridx()*
67076732
The result is a Number, which gives the byte index in
67086733
{haystack} of the first occurrence of the String {needle}.
@@ -6752,14 +6777,17 @@ strlen({expr}) The result is a Number, which is the length of the String
67526777
strpart({src}, {start}[, {len}]) *strpart()*
67536778
The result is a String, which is part of {src}, starting from
67546779
byte {start}, with the byte length {len}.
6755-
When non-existing bytes are included, this doesn't result in
6756-
an error, the bytes are simply omitted.
6780+
To count characters instead of bytes use |strcharpart()|.
6781+
6782+
When bytes are selected which do not exist, this doesn't
6783+
result in an error, the bytes are simply omitted.
67576784
If {len} is missing, the copy continues from {start} till the
67586785
end of the {src}. >
67596786
strpart("abcdefg", 3, 2) == "de"
67606787
strpart("abcdefg", -2, 4) == "ab"
67616788
strpart("abcdefg", 5, 4) == "fg"
67626789
strpart("abcdefg", 3) == "defg"
6790+
67636791
< Note: To get the first character, {start} must be 0. For
67646792
example, to get three bytes under and after the cursor: >
67656793
strpart(getline("."), col(".") - 1, 3)
@@ -8426,14 +8454,6 @@ This does NOT work: >
84268454
endfor
84278455
< Note that reordering the list (e.g., with sort() or
84288456
reverse()) may have unexpected effects.
8429-
Note that the type of each list item should be
8430-
identical to avoid errors for the type of {var}
8431-
changing. Unlet the variable at the end of the loop
8432-
to allow multiple item types: >
8433-
for item in ["foo", ["bar"]]
8434-
echo item
8435-
unlet item " E706 without this
8436-
endfor
84378457

84388458
:for [{var1}, {var2}, ...] in {listlist}
84398459
:endfo[r]

runtime/doc/if_cscop.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ command does the same and also splits the window (short: "scs").
9797

9898
The available subcommands are:
9999

100-
*E563* *E564* *E566* *E568* *E569* *E622* *E623*
101-
*E625* *E626* *E609*
100+
*E563* *E564* *E566* *E568* *E622* *E623* *E625*
101+
*E626* *E609*
102102
add : Add a new cscope database/connection.
103103

104104
USAGE :cs add {file|dir} [pre-path] [flags]

runtime/doc/if_pyth.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ if the `:py3` command is working: >
734734
:py3 print("Hello")
735735
< *:py3file*
736736
The `:py3file` command works similar to `:pyfile`.
737-
*:py3do* *E863*
737+
*:py3do*
738738
The `:py3do` command works similar to `:pydo`.
739739

740740

runtime/doc/if_tcl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The Tcl Interface to Vim *tcl* *Tcl* *TCL*
1616
8. Examples |tcl-examples|
1717
9. Dynamic loading |tcl-dynamic|
1818

19-
{Vi does not have any of these commands} *E280* *E281*
19+
{Vi does not have any of these commands} *E280*
2020

2121
The Tcl interface only works when Vim was compiled with the |+tcl| feature.
2222

runtime/doc/index.txt

Lines changed: 6 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 Mar 12
1+
*index.txt* For Vim version 7.4. Last change: 2016 Apr 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -49,6 +49,7 @@ tag char action in Insert mode ~
4949
|i_CTRL-G_k| CTRL-G k line up, to column where inserting started
5050
|i_CTRL-G_k| CTRL-G <Up> line up, to column where inserting started
5151
|i_CTRL-G_u| CTRL-G u start new undoable edit
52+
|i_CTRL-G_U| CTRL-G U don't break undo with next cursor movement
5253
|i_<BS>| <BS> delete character before the cursor
5354
|i_digraph| {char1}<BS>{char2}
5455
enter digraph (only when 'digraph' option set)
@@ -859,6 +860,7 @@ tag command note action in Visual mode ~
859860
------------------------------------------------------------------------------
860861
|v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode
861862
|v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode'
863+
|v_CTRL-A| CTRL-A 2 add N to number in highlighted text
862864
|v_CTRL-C| CTRL-C stop Visual mode
863865
|v_CTRL-G| CTRL-G toggle between Visual mode and Select mode
864866
|v_<BS>| <BS> 2 Select mode: delete highlighted area
@@ -867,6 +869,7 @@ tag command note action in Visual mode ~
867869
command
868870
|v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual
869871
mode
872+
|v_CTRL-X| CTRL-X 2 subtract N from number in highlighted text
870873
|v_<Esc>| <Esc> stop Visual mode
871874
|v_CTRL-]| CTRL-] jump to highlighted tag
872875
|v_!| !{filter} 2 filter the highlighted lines through the
@@ -923,6 +926,8 @@ tag command note action in Visual mode ~
923926
|v_a}| a} same as aB
924927
|v_c| c 2 delete highlighted area and start insert
925928
|v_d| d 2 delete highlighted area
929+
|v_g_CTRL-A| g CTRL-A 2 add N to number in highlighted text
930+
|v_g_CTRL-X| g CTRL-X 2 subtract N from number in highlighted text
926931
|v_gJ| gJ 2 join the highlighted lines without
927932
inserting spaces
928933
|v_gq| gq 2 format the highlighted lines

0 commit comments

Comments
 (0)