Skip to content

Commit adaa23b

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 523f23d + d79e550 commit adaa23b

30 files changed

+999
-512
lines changed

Filelist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ SRC_ALL = \
77
.travis.yml \
88
appveyor.yml \
99
src/README.txt \
10+
src/alloc.h \
1011
src/arabic.c \
1112
src/arabic.h \
1213
src/ascii.h \

runtime/doc/eval.txt

Lines changed: 3 additions & 3 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 03
1+
*eval.txt* For Vim version 7.4. Last change: 2016 Jan 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1739,8 +1739,8 @@ USAGE RESULT DESCRIPTION ~
17391739
abs( {expr}) Float or Number absolute value of {expr}
17401740
acos( {expr}) Float arc cosine of {expr}
17411741
add( {list}, {item}) List append {item} to |List| {list}
1742-
alloc_fail( {countdown}, {when}, {repeat})
1743-
nothing make memory allocation fail
1742+
alloc_fail( {id}, {countdown}, {repeat})
1743+
none make memory allocation fail
17441744
and( {expr}, {expr}) Number bitwise AND
17451745
append( {lnum}, {string}) Number append {string} below line {lnum}
17461746
append( {lnum}, {list}) Number append lines {list} below line {lnum}

runtime/doc/help.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*help.txt* For Vim version 7.4. Last change: 2015 Jun 21
1+
*help.txt* For Vim version 7.4. Last change: 2016 Jan 09
22

33
VIM - main help file
44
k
@@ -25,6 +25,8 @@ Get specific help: It is possible to go directly to whatever you want help
2525
Vim command argument - :help -r
2626
Option ' :help 'textwidth'
2727
Regular expression / :help /[
28+
Also see |help-summary| for a verbose explanation.
29+
2830
Search for help: Type ":help word", then hit CTRL-D to see matching
2931
help entries for "word".
3032
Or use ":helpgrep word". |:helpgrep|

runtime/doc/index.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*index.txt* For Vim version 7.4. Last change: 2016 Jan 03
1+
*index.txt* For Vim version 7.4. Last change: 2016 Jan 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1055,7 +1055,7 @@ tag command action in Command-line editing mode ~
10551055
|c_<Insert>| <Insert> toggle insert/overstrike mode
10561056
|c_<LeftMouse>| <LeftMouse> cursor at mouse click
10571057

1058-
You found it, Arthur! *holy-grail*
1058+
You found it, Arthur! *holy-grail* *:smile*
10591059

10601060
==============================================================================
10611061
5. EX commands *ex-cmd-index* *:index*
@@ -1176,7 +1176,7 @@ tag command action ~
11761176
|:cpfile| :cpf[ile] go to last error in previous file
11771177
|:cquit| :cq[uit] quit Vim with an error code
11781178
|:crewind| :cr[ewind] go to the specified error, default first one
1179-
|:cscope| :cs[cope] execute cscope command
1179+
|:cscope| :cs[cope] execute cscope command
11801180
|:cstag| :cst[ag] use cscope to jump to a tag
11811181
|:cunmap| :cu[nmap] like ":unmap" but for Command-line mode
11821182
|:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode
@@ -1297,7 +1297,7 @@ tag command action ~
12971297
|:lcd| :lc[d] change directory locally
12981298
|:lchdir| :lch[dir] change directory locally
12991299
|:lclose| :lcl[ose] close location window
1300-
|:lcscope| :lcs[cope] like ":cscope" but uses location list
1300+
|:lcscope| :lcs[cope] like ":cscope" but uses location list
13011301
|:ldo| :ld[o] execute command in valid location list entries
13021302
|:lfdo| :lfd[o] execute command in each file in location list
13031303
|:left| :le[ft] left align lines
@@ -1353,7 +1353,7 @@ tag command action ~
13531353
|:marks| :marks list all marks
13541354
|:match| :mat[ch] define a match to highlight
13551355
|:menu| :me[nu] enter a new menu item
1356-
|:menutranslate| :menut[ranslate] add a menu translation item
1356+
|:menutranslate| :menut[ranslate] add a menu translation item
13571357
|:messages| :mes[sages] view previously displayed messages
13581358
|:mkexrc| :mk[exrc] write current mappings and settings to a file
13591359
|:mksession| :mks[ession] write session info to a file
@@ -1497,7 +1497,7 @@ tag command action ~
14971497
|:smap| :smap like ":map" but for Select mode
14981498
|:smapclear| :smapc[lear] remove all mappings for Select mode
14991499
|:smenu| :sme[nu] add menu for Select mode
1500-
|:smile| :smi[le] make the user happy
1500+
|:smile| :smi[le] make the user happy
15011501
|:snext| :sn[ext] split window and go to next file in the
15021502
argument list
15031503
|:sniff| :sni[ff] send request to sniff
@@ -1520,7 +1520,7 @@ tag command action ~
15201520
|:stop| :st[op] suspend the editor or escape to a shell
15211521
|:stag| :sta[g] split window and jump to a tag
15221522
|:startinsert| :star[tinsert] start Insert mode
1523-
|:startgreplace| :startg[replace] start Virtual Replace mode
1523+
|:startgreplace| :startg[replace] start Virtual Replace mode
15241524
|:startreplace| :startr[eplace] start Replace mode
15251525
|:stopinsert| :stopi[nsert] stop Insert mode
15261526
|:stjump| :stj[ump] do ":tjump" and split window

runtime/doc/spell.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*spell.txt* For Vim version 7.4. Last change: 2014 Sep 19
1+
*spell.txt* For Vim version 7.4. Last change: 2016 Jan 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/tags

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
10481048
'tbis' options.txt /*'tbis'*
10491049
'tbs' options.txt /*'tbs'*
10501050
'tc' options.txt /*'tc'*
1051+
'tcldll' options.txt /*'tcldll'*
10511052
'tenc' options.txt /*'tenc'*
10521053
'term' options.txt /*'term'*
10531054
'termbidi' options.txt /*'termbidi'*
@@ -2872,6 +2873,7 @@ $VIMRUNTIME starting.txt /*$VIMRUNTIME*
28722873
:smapclear map.txt /*:smapclear*
28732874
:sme gui.txt /*:sme*
28742875
:smenu gui.txt /*:smenu*
2876+
:smile index.txt /*:smile*
28752877
:sn windows.txt /*:sn*
28762878
:snext windows.txt /*:snext*
28772879
:sni if_sniff.txt /*:sni*
@@ -4922,6 +4924,7 @@ added-win32-GUI version5.txt /*added-win32-GUI*
49224924
aff-dic-format spell.txt /*aff-dic-format*
49234925
after-directory options.txt /*after-directory*
49244926
aleph options.txt /*aleph*
4927+
alloc_fail() eval.txt /*alloc_fail()*
49254928
alt intro.txt /*alt*
49264929
alt-input debugger.txt /*alt-input*
49274930
alt-movement gui_mac.txt /*alt-movement*
@@ -8077,6 +8080,7 @@ spell-NAME spell.txt /*spell-NAME*
80778080
spell-NEEDAFFIX spell.txt /*spell-NEEDAFFIX*
80788081
spell-NEEDCOMPOUND spell.txt /*spell-NEEDCOMPOUND*
80798082
spell-NOBREAK spell.txt /*spell-NOBREAK*
8083+
spell-NOCOMPOUNDSUGS spell.txt /*spell-NOCOMPOUNDSUGS*
80808084
spell-NOSPLITSUGS spell.txt /*spell-NOSPLITSUGS*
80818085
spell-NOSUGFILE spell.txt /*spell-NOSUGFILE*
80828086
spell-NOSUGGEST spell.txt /*spell-NOSUGGEST*
@@ -9048,6 +9052,7 @@ winwidth() eval.txt /*winwidth()*
90489052
word motion.txt /*word*
90499053
word-count editing.txt /*word-count*
90509054
word-motions motion.txt /*word-motions*
9055+
wordcount() eval.txt /*wordcount()*
90519056
workbench starting.txt /*workbench*
90529057
workshop workshop.txt /*workshop*
90539058
workshop-commands workshop.txt /*workshop-commands*

runtime/doc/todo.txt

Lines changed: 46 additions & 24 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 03
1+
*todo.txt* For Vim version 7.4. Last change: 2016 Jan 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -34,6 +34,8 @@ not be repeated below, unless there is extra information.
3434
*known-bugs*
3535
-------------------- Known bugs and current work -----------------------
3636

37+
/tmp/test_increment_new_style.patch.2
38+
3739
Regexp problems:
3840
- The regexp engines are not reentrant, causing havoc when interrupted by a
3941
remote expression or something else. Move global variables onto the stack
@@ -76,10 +78,13 @@ Regexp problems:
7678
matches the empty string. (Dominique Pelle, 2015 Oct 2, Nov 24)
7779
- Search for \\~ causes error E874.
7880

79-
Need better instructions about how to install all interfaces and how to build
80-
Vim with them.
81-
For Ruby: https://github.com/ruby/ruby/tree/trunk/win32
82-
Or use Ken Takata's hack.
81+
Help to build with interfaces. (Ken Takata, 2015 Jan 5)
82+
83+
Need to try out instructions in INSSTALLpc.txt about how to install all
84+
interfaces and how to build Vim with them.
85+
Appveyor build with self-installing executable, includes getting most
86+
interfaces: https://github.com/k-takata/vim/tree/chrisbra-appveyor-build
87+
result: https://ci.appveyor.com/project/k-takata/vim/history
8388

8489
Still using freed memory after using setloclist(). (lcd, 2014 Jul 23)
8590
More info Jul 24. Not clear why.
@@ -96,6 +101,10 @@ Should use /usr/local/share/applications or /usr/share/applications.
96101
Or use $XDG_DATA_DIRS.
97102
Also need to run update-desktop-database (Kuriyama Kazunobu, 2015 Nov 4)
98103

104+
Patch to update the help summary. (Christian Brabandt, 2015 Jan 10)
105+
106+
Add has('crypt-blowfish') and has('crypt-blowfish2') (Smu Johnson)
107+
99108
Access to uninitialized memory in match_backref() regexp_nda.c:4882
100109
(Dominique Pelle, 2015 Nov 6)
101110

@@ -105,12 +114,23 @@ directory exists. (Sergio Gallelli, 2013 Dec 29)
105114
Using ":windo" to set options in all windows has the side effect that it
106115
changes the window layout and the current window. Make a variant that saves
107116
and restores. Use in the matchparen plugin.
108-
Perhaps we can use "window <restore> {cmd}"?
117+
Perhaps we can use ":windo <restore> {cmd}"?
118+
Patch to add <restore> to :windo, :bufdo, etc. (Christian Brabandt, 2015 Jan
119+
6, 2nd message)
120+
Alternative: ":keeppos" command modifier: ":keeppos windo {cmd}".
109121

110122
Illegal memory access, requires ASAN to see. (Dominique Pelle, 2015 Jul 28)
111123

112124
Gvim: when both Tab and CTRL-I are mapped, use CTRL-I not for Tab.
113125

126+
Patch to fix "." after CTRL-A in Visual block mode. (Ozaki Kiichi, 2015 Oct
127+
24)
128+
129+
Patch to have CTRL-A and CTRL-X update the '[ and '] marks.
130+
(Yukihiro Nakadaira, 2015 Aug 23)
131+
132+
Patch for GVimExt building with VS2015. (Mike Williams, 2015 Jan 10)
133+
114134
Unexpected delay when using CTRL-O u. It's not timeoutlen.
115135
(Gary Johnson, 2015 Aug 28)
116136

@@ -128,27 +148,28 @@ set_color_count().
128148

129149
Python: ":py raw_input('prompt')" doesn't work. (Manu Hack)
130150

131-
Patch to add wordcount(). (Christian Brabandt, 2015 Nov 27)
132-
133151
Plugin to use Vim in MANPAGER. Konfekt, PR #491
134152

135153
Using uninitialized memory. (Dominique Pelle, 2015 Nov 4)
136154

155+
Patch for explaining the help. (Christian Brabandt, 2015 Jan 8)
156+
Should be in the user manual?
157+
137158
Patch to recognize string slice for variable followed by colon.
138159
(Hirohito Higashi, 2015 Nov 24)
139160

140161
Patch to add debug backtrace. (Alberto Fanjul, 2015 Sep 27)
141162
Update 2016 Jan 2. Issue #433
142163

164+
Patch to make mzscheme (racket) interface work. (Yukihiro Nakadaira, 2015 Jan
165+
10) Doesn't work for me, need to build from source.
166+
143167
MS-Windows: When editing a file with a leading space, writing it uses the
144168
wrong name. (Aram, 2014 Nov 7) Vim 7.4.
145169

146170
Can't recognize the $ProgramFiles(x86) environment variable. Recognize it
147171
specifically? First try with the parens, then without.
148172

149-
Patch to fix "." after CTRL-A in Visual block mode. (Ozaki Kiichi, 2015 Oct
150-
24)
151-
152173
Half-finished patch to fix the Problem using cgn to change a search hit when
153174
replacement includes hit. Reported by John Beckett, fix by Christian Brabandt,
154175
2015 Dec 14, Update Dec 15.
@@ -159,7 +180,7 @@ Patch to make building GVimExt with VS2015. (Mike Williams, 2015 Dec 13)
159180
Value returned by virtcol() changes depending on how lines wrap. This is
160181
inconsistent with the documentation.
161182

162-
Patch to add perleval(). (Damien, 2015 Dec 8)
183+
Patch to add perleval(). (Damien, 2015 Dec 8, update 2016 Jan 4)
163184

164185
Can we cache the syntax attributes, so that updates for 'relativenumber' and
165186
'cursorline'/'cursorcolumn' are a lot faster?
@@ -195,6 +216,11 @@ Nov 29)
195216
If libiconv.dll is not found search for libiconv2.dll. (Yasuhiro Matsumoto,
196217
2015 Oct 7)
197218

219+
Using an external diff is inefficient. Not all systems have a good diff
220+
program available (esp. MS-Windows). Would be nice to have in internal diff
221+
implementation. Can then also use this for displaying changes within a line.
222+
Olaf Dabrunz is working on this.
223+
198224
The OptionSet autocommand event is not always triggered. (Rick Howe, 2015 Sep
199225
24): :diffthis, :diffoff.
200226

@@ -227,12 +253,16 @@ Sep 10)
227253
Patch to be able to use hex numbers with :digraph. (Lcd, 2015 Sep 6)
228254
Update Sep 7. Update by Christian Brabandt, 2015 Sep 8.
229255

256+
Patch to improve I/O for Perl. (Damine, 2015 Jan 9)
257+
258+
Patch to set antialiasing style on Windows. (Ondrej Balaz, 2013 Mar 14)
259+
Needs a different check for CLEARTYPE_QUALITY.
260+
Problem mentioned by Christian Brabandt, 2016 Jan 4.
261+
230262
Example in editing.txt uses $HOME with the expectating that it ends in a
231263
slash. For me it does, but perhaps not for everybody. Add a function that
232264
inserts a slash when needed? pathconcat(dir, path) (Thilo Six, 2015 Aug 12)
233265

234-
Patch to load TCL dynamically. (Ken Takata, 2015 Nov 11)
235-
236266
ml_updatechunk() is slow when retrying for another encoding. (John Little,
237267
2014 Sep 11)
238268

@@ -263,9 +293,6 @@ Work in progress.
263293
Patch for global-local options consistency. (Arnaud Decara, 2015 Jul 22)
264294
Is this right?
265295

266-
Patch to have CTRL-A and CTRL-X update the '[ and '] marks.
267-
(Yukihiro Nakadaira, 2015 Aug 23)
268-
269296
Patch to make getregtype() return the right size for non-linux systems.
270297
(Yasuhiro Matsumoto, 2014 Jul 8)
271298
Breaks test_eval. Inefficient, can we only compute y_width when needed?
@@ -359,7 +386,7 @@ Patch for ordered dict. (Ozaki Kiichi, 2015 May 7)
359386
Patch to make closed folds line up. (Charles Campbell, 2014 Sep 12)
360387
Remark from Roland Eggner: does it cause crashes? (2014 Dec 12)
361388
Updated patch by Roland Eggner, Dec 16
362-
Updated patch from Charles, Dec 29.
389+
Updated patch from Charles, 2016 Jan 4.
363390

364391
Patch to open folds for 'incsearch'. (Christian Brabandt, 2015 Jan 6)
365392

@@ -672,9 +699,6 @@ Patch by Christian Brabandt, 2013 Apr 20, unfinished.
672699

673700
Bug: findfile("any", "file:///tmp;") does not work.
674701

675-
Patch to set antialiasing style on Windows. (Ondrej Balaz, 2013 Mar 14)
676-
Needs a different check for CLEARTYPE_QUALITY.
677-
678702
In the ATTENTION message about an existing swap file, mention the name of the
679703
process that is running. It might actually be some other program, e.g. after
680704
a reboot.
@@ -2746,8 +2770,7 @@ Macintosh:
27462770
8 On MS-Windows ":make" doesn't show output while it is working. Use the
27472771
tee.exe from http://unxutils.sourceforge.net/ ? About 16 Kbyte in the
27482772
UnxUtils.zip archive.
2749-
Alternate one: http://www.pramodx.20m.com/tee_for_win32.htm, but Walter
2750-
Briscoe says it's not as good.
2773+
Is it better than what we have in src/tee?
27512774
8 When doing Insert mode completion a mapping cannot recursively call
27522775
edit(), because the completion information is global. Put everything in
27532776
an allocated structure?
@@ -4632,7 +4655,6 @@ Visual mode:
46324655
6 ":left" and ":right" should work in Visual block mode.
46334656
7 CTRL-I and CTRL-O should work in Visual mode, but only jump to marks in the
46344657
current buffer.
4635-
7 CTRL-A and CTRL-X should increase/decrease all numbers in the Visual area.
46364658
6 In non-Block mode, "I" should insert the same text in front of each line,
46374659
before the first non-blank, "gI" in column 1.
46384660
6 In non-Block mode, "A" should append the same text after each line.

runtime/doc/usr_03.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_03.txt* For Vim version 7.4. Last change: 2015 Dec 12
1+
*usr_03.txt* For Vim version 7.4. Last change: 2016 Jan 05
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -413,8 +413,8 @@ in "the" use: >
413413
/the\>
414414
415415
The "\>" item is a special marker that only matches at the end of a word.
416-
Similarly "\<" only matches at the begin of a word. Thus to search for the
417-
word "the" only: >
416+
Similarly "\<" only matches at the beginning of a word. Thus to search for
417+
the word "the" only: >
418418
419419
/\<the\>
420420

runtime/ftplugin/hgcommit.vim

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
" Vim filetype plugin file
2+
" Language: hg (Mercurial) commit file
3+
" Maintainer: Ken Takata <kentkt at csc dot jp>
4+
" Last Change: 2016 Jan 6
5+
" Filenames: hg-editor-*.txt
6+
" License: VIM License
7+
" URL: https://github.com/k-takata/hg-vim
8+
9+
if exists("b:did_ftplugin")
10+
finish
11+
endif
12+
let b:did_ftplugin = 1
13+
14+
setlocal nomodeline
15+
16+
let b:undo_ftplugin = 'setl modeline<'

runtime/indent/lua.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
" Language: Lua script
33
" Maintainer: Marcus Aurelius Farias <marcus.cf 'at' bol.com.br>
44
" First Author: Max Ischenko <mfi 'at' ukr.net>
5-
" Last Change: 2014 Nov 12
5+
" Last Change: 2016 Jan 10
66

77
" Only load this indent file when no other was loaded.
88
if exists("b:did_indent")
@@ -52,9 +52,9 @@ function! GetLuaIndent()
5252
endif
5353
endif
5454

55-
" Subtract a 'shiftwidth' on end, else (and elseif), until and '}'
55+
" Subtract a 'shiftwidth' on end, else, elseif, until and '}'
5656
" This is the part that requires 'indentkeys'.
57-
let midx = match(getline(v:lnum), '^\s*\%(end\>\|else\>\|until\>\|}\)')
57+
let midx = match(getline(v:lnum), '^\s*\%(end\>\|else\>\|elseif\>\|until\>\|}\)')
5858
if midx != -1 && synIDattr(synID(v:lnum, midx + 1, 1), "name") != "luaComment"
5959
let ind = ind - &shiftwidth
6060
endif

0 commit comments

Comments
 (0)