Skip to content

Commit c905663

Browse files
committed
Merge branch 'vim' of git://github.com/b4winckler/macvim into kaoriya
Conflicts: runtime/doc/change.txt runtime/doc/eval.txt runtime/doc/todo.txt src/po/ja.po src/po/ja.sjis.po
2 parents 73af0f5 + b50c837 commit c905663

File tree

200 files changed

+13284
-7670
lines changed

Some content is hidden

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

200 files changed

+13284
-7670
lines changed

.hgignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ gvimext.lib
5151
src/po/*.ck
5252
src/testdir/mbyte.vim
5353
src/testdir/mzscheme.vim
54+
src/testdir/lua.vim
5455
src/testdir/small.vim
5556
src/testdir/tiny.vim
5657
src/testdir/test*.out

.hgtags

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1858,3 +1858,92 @@ b782e2f9e6892116ae5d068249b5198bbe0042c6 v7-3-511
18581858
75037f9bc97ad76bca58dbbc0ddac69cc7f5d9ac v7-3-513
18591859
7e4428115d2cea86fcfa980097c98c11380ae196 v7-3-514
18601860
6c318419e3310fb9658ee6ead6b4ea33def8cb6d v7-3-515
1861+
02440d1fcc9aa953ebb7c0719405ccf2525f2777 v7-3-516
1862+
9a1dba1f969ac4cb2477626cd79a7a6b0bea1894 v7-3-517
1863+
ec4ab9d832b0f5308c861423d99253fa496b3a3b v7-3-518
1864+
ebec52bc2800b8e51e522425fdca5c252e6d4f8e v7-3-519
1865+
7bafe52b6245761a242321352daca224e6b9df78 v7-3-520
1866+
b14842cf382bd3f99ca090c985609c6dead5f9e0 v7-3-521
1867+
e4899d2ff5d8e552ace52b7eafe02b2c5dcdb409 v7-3-522
1868+
d8ce4a2eb44e3e3d56db5e26d9982aeb48d7814b v7-3-523
1869+
ae1641c4fbcc8c25d27802d6048cb0767c4021d1 v7-3-524
1870+
ac2e00f917df566b81b9e33891b102cba5b390e0 v7-3-525
1871+
257c2878e0fcabd5504dcfed910287374405440a v7-3-526
1872+
a17918b76ca1296f63db0e81dea0e37b8b880150 v7-3-527
1873+
fa17c8646feb4719639150f1c301ce6c1557afb7 v7-3-528
1874+
d83218a156dd8258a5f2f3ae019c56f3e8851d48 v7-3-529
1875+
81d5f3a3e27fff9188ae34c41b939fc88c9837de v7-3-530
1876+
c44f0f7424b98d321d90994198374628911623ce v7-3-531
1877+
9755d151c7492a5f1d0e77a2d3c9e414f20f3b4e v7-3-532
1878+
74d51b51f3e69df7d3295255ee10391b3409055b v7-3-533
1879+
65f905eb14cd373e205ff4c8a53027514e96d819 v7-3-534
1880+
f52d2ea0f81c20e6f026d74cec66b135d5470d2d v7-3-535
1881+
a8897fd5d074d7baaba692013521304b13beb784 v7-3-536
1882+
96715c3a905faa1bbdc50b16b0f57671b4758e0c v7-3-537
1883+
bbf1fbbe4ab45442f8876790004805503e25f563 v7-3-538
1884+
7a710cf51d73cb3c3c76fcea34ee706443800c54 v7-3-539
1885+
af083cb521bcb69aae315654a3873c488dc58c43 v7-3-540
1886+
5c1aaf9b4b1bc2d14d627fe22d414f3a2525c50b v7-3-541
1887+
8d1b63e6d3173625324f4adfe733efc8091f9422 v7-3-542
1888+
ce7bd50bafa74f4da979f27c4e5fa9a47e69d739 v7-3-543
1889+
09d0bda69df0c5eb505a02e37a978e92fbc89332 v7-3-544
1890+
e7ff3251dfa157284a48c5322783499d079e3eb0 v7-3-545
1891+
0a364618c0e59fa777f526c99bee608bb5cf55ce v7-3-546
1892+
4f4db5d661c4fae42f2d917c09549d58a2f4d05f v7-3-547
1893+
8625e38066dbf6a4d5e2563fbe191c3910681d2e v7-3-548
1894+
c0c935956ac3b7c706043e5c7c0ba840636fb10f v7-3-549
1895+
297771eff080ed3bcfb2ade57c2dcab34bac5de8 v7-3-550
1896+
e83c5dcea112a44f9a7b06042b52798e32d96541 v7-3-551
1897+
443c50cd3e8811b58a4ca131ab21abd18aea9489 v7-3-552
1898+
583e46e4a56c40fa1a7336be85eaec93f6800edf v7-3-553
1899+
a967a979c37f458bd4d164afb8a6192a5b4a6fde v7-3-554
1900+
8fb7bd9dfb2b26b43725c90e042d2089762466a6 v7-3-555
1901+
b8924014a03991b79947d735a894e2c2e8f94980 v7-3-556
1902+
a220dd97b5c7218558eaea27d301af2ed4f9ec2d v7-3-557
1903+
34724dc5172bb81a9e670c5bd23edbe6a124fd28 v7-3-558
1904+
74adc9f7e15b8c088abd04de35615cad6c83a811 v7-3-559
1905+
0abd38ba64557c4a6d62575aaa3fc7ab6482d747 v7-3-560
1906+
a1de7928a7aba45240c85a2bc8d70adadc49e4dc v7-3-561
1907+
b2763055bdf26e1f11bf8cfb0601fefbefb34e0d v7-3-562
1908+
02c86cdcf9a23f092400c7631e5906cb9053703b v7-3-563
1909+
683de93060968ed4e9dfb7992910c75f479471ec v7-3-564
1910+
5f811338b1186e1aef683d03fa05a8026d30e9f1 v7-3-565
1911+
18c6b1752d0baab043792d3f6267ec393f7a11e1 v7-3-566
1912+
f90bb88c261582fef85c16009f19168b38debd74 v7-3-567
1913+
3b5f541269e2d9e57b82ea1ec89c6747e2003434 v7-3-568
1914+
c052f3b79b9948e7072580e7db42f90c92eb40af v7-3-569
1915+
4f1c511e71f851c4f1c14e950f95ebd6967c6ed1 v7-3-570
1916+
43fd3896fab7be5ad01deed2960d37d91ba65691 v7-3-571
1917+
3ae387af405f46e200fdf9bc204d0a251864abb9 v7-3-572
1918+
802b1a1b275f5c8f95724d50d53642f221621d79 v7-3-573
1919+
3ac005f02cf015b3aa246482c6331bd61c08d91a v7-3-574
1920+
79ae10bd056520fb6367247804af22e52d2de8b8 v7-3-575
1921+
7e3fedfc3d08d020e3ce047ec1a1cfd195af9ed7 v7-3-576
1922+
286ba0251c0aff1a664a481846c1f4107fae0c11 v7-3-577
1923+
0e9b2622c94a8edf906d6c44831c1cded7184d13 v7-3-578
1924+
80ed6aa7b9eb18058a0b105af2ecd7b213891be2 v7-3-579
1925+
f02b6ad168ae82ead0286b64627762ab2343ee96 v7-3-580
1926+
96249a1803e28e6173faed53f8687334aa63360c v7-3-581
1927+
d383bc2ba8112103389a44c2c747eaa1016da935 v7-3-582
1928+
a69b1d711ff9d8b227acff694c53310cf237933f v7-3-583
1929+
2d107086903af80afee524549e57d3ba016b3f12 v7-3-584
1930+
d258a0c5c38a6a604b983b6499a0f02bc061c816 v7-3-585
1931+
8393a16069fb5f7b22ab766167b698e4dc129911 v7-3-586
1932+
a34fb0a077c9c26946727a25222e0a99dc08db0d v7-3-587
1933+
e92cc285632dc29d932061970e43b53cdbb3460d v7-3-588
1934+
e82937b753a8ca6705bf55dbf258f077746ec428 v7-3-589
1935+
bdf7f3e4c763f2a038c397af8eb6b8950e58db6b v7-3-590
1936+
e5b925ae56e36e86eb2ff059aa28d6a2dd332845 v7-3-591
1937+
0e06193d4bd7be03924dd9c6251a64c6c6adf78d v7-3-592
1938+
46896c29edd74418c665af7c1ed685aa52a41e1a v7-3-593
1939+
5e7b500dbb7e9e964457d300b536aeba9771af6c v7-3-594
1940+
928e7cef8836d13d4f2a17234e127b928ee63ff4 v7-3-595
1941+
5aad2c444a00a2309e6e373b6bcb5441669ba126 v7-3-596
1942+
b9aa7fb4a9281b87a651251f799e049409634757 v7-3-597
1943+
f0747581607924c30530687fa88ebaa57602eb5f v7-3-598
1944+
b06578f1390fea339a2d9d18e12758ec1dbcc279 v7-3-599
1945+
8f98038a0bf34310a8224a569eacd539b7b8b649 v7-3-600
1946+
c1780b4cb9955fc113c3c993c18c139e06425ef5 v7-3-601
1947+
5cacdf56c94b6fa1992f7e9c07c95bfe52bcccec v7-3-602
1948+
085f14642fe828b1cbae5706ca87f2932cebeb75 v7-3-603
1949+
acd91c9741a6d0185b7c63db412888de4f904118 v7-3-604

Filelist

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ RT_ALL = \
463463
runtime/macros/hanoi/hanoi.vim \
464464
runtime/macros/hanoi/poster \
465465
runtime/macros/justify.vim \
466+
runtime/macros/less.bat \
466467
runtime/macros/less.sh \
467468
runtime/macros/less.vim \
468469
runtime/macros/life/click.me \
@@ -666,6 +667,8 @@ EXTRA = \
666667

667668
# generic language files
668669
LANG_GEN = \
670+
runtime/doc/*-de.1 \
671+
runtime/doc/*-de.UTF-8.1 \
669672
runtime/doc/*-fr.1 \
670673
runtime/doc/*-fr.UTF-8.1 \
671674
runtime/doc/*-it.1 \

runtime/autoload/ccomplete.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim completion script
22
" Language: C
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2011 Dec 30
4+
" Last Change: 2012 Jun 20
55

66
let s:cpo_save = &cpo
77
set cpo&vim
@@ -500,7 +500,7 @@ function! s:StructMembers(typename, items, all)
500500
endif
501501
if !cached
502502
while 1
503-
exe 'silent! ' . n . 'vimgrep /\t' . typename . '\(\t\|$\)/j ' . fnames
503+
exe 'silent! keepj noautocmd ' . n . 'vimgrep /\t' . typename . '\(\t\|$\)/j ' . fnames
504504

505505
let qflist = getqflist()
506506
if len(qflist) > 0 || match(typename, "::") < 0

runtime/doc/autocmd.txt

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 7.3. Last change: 2012 Feb 22
1+
*autocmd.txt* For Vim version 7.3. Last change: 2012 Jul 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -385,6 +385,10 @@ BufRead or BufReadPost When starting to edit a new buffer, after
385385
This does NOT work for ":r file". Not used
386386
when the file doesn't exist. Also used after
387387
successfully recovering a file.
388+
Also triggered for the filetypedetect group
389+
when executing ":filetype detect" and when
390+
writing an unnamed buffer in a way that the
391+
buffer gets a name.
388392
*BufReadCmd*
389393
BufReadCmd Before starting to edit a new buffer. Should
390394
read the file into the buffer. |Cmd-event|
@@ -474,6 +478,11 @@ CmdwinLeave Before leaving the command-line window.
474478
*ColorScheme*
475479
ColorScheme After loading a color scheme. |:colorscheme|
476480

481+
*CompleteDone*
482+
CompleteDone After Insert mode completion is done. Either
483+
when something was completed or abandoning
484+
completion. |ins-completion|
485+
477486
*CursorHold*
478487
CursorHold When the user doesn't press a key for the time
479488
specified with 'updatetime'. Not re-triggered
@@ -717,6 +726,12 @@ QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix
717726
it is run after error file is read and before
718727
moving to the first error.
719728
See |QuickFixCmdPost-example|.
729+
*QuitPre*
730+
QuitPre When using `:quit`, before deciding whether it
731+
closes the current window or quits Vim. Can
732+
be used to close any non-essential window if
733+
the current window is the last ordinary
734+
window.
720735
*RemoteReply*
721736
RemoteReply When a reply from a Vim that functions as
722737
server was received |server2client()|. The

runtime/doc/change.txt

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 7.3. Last change: 2012 Apr 25
1+
*change.txt* For Vim version 7.3. Last change: 2012 Jun 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -260,6 +260,12 @@ r{char} Replace the character under the cursor with {char}.
260260
<CR>. CTRL-V <NL> replaces with a <Nul>.
261261
{Vi: CTRL-V <CR> still replaces with a line break,
262262
cannot replace something with a <CR>}
263+
264+
If {char} is CTRL-E or CTRL-Y the character from the
265+
line below or above is used, just like with |i_CTRL-E|
266+
and |i_CTRL-Y|. This also works with a count, thus
267+
`10r<C-E>` copies 10 characters from the line below.
268+
263269
If you give a [count], Vim replaces [count] characters
264270
with [count] {char}s. When {char} is a <CR> or <NL>,
265271
however, Vim inserts only one <CR>: "5r<CR>" replaces
@@ -1496,6 +1502,7 @@ n When formatting text, recognize numbered lists. This actually uses
14961502
first line of a paragraph
14971503
second line of the same paragraph
14981504
third line.
1505+
< This also works inside comments, ignoring the comment leader.
14991506
v Vi-compatible auto-wrapping in insert mode: Only break a line at a
15001507
blank that you have entered during the current insert command. (Note:
15011508
this is not 100% Vi compatible. Vi has some "unexpected features" or
@@ -1516,6 +1523,12 @@ B When joining lines, don't insert a space between two multi-byte
15161523
characters. Overruled by the 'M' flag.
15171524
1 Don't break a line after a one-letter word. It's broken before it
15181525
instead (if possible).
1526+
j Where it makes sense, remove a comment leader when joining lines. For
1527+
example, joining:
1528+
int i; // the index ~
1529+
// in the list ~
1530+
Becomes:
1531+
int i; // the index in the list ~
15191532

15201533

15211534
With 't' and 'c' you can specify when Vim performs auto-wrapping:

runtime/doc/cmdline.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*cmdline.txt* For Vim version 7.3. Last change: 2012 Feb 05
1+
*cmdline.txt* For Vim version 7.3. Last change: 2012 Jun 20
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -826,10 +826,11 @@ These modifiers can be given, in this order:
826826
the home directory. If the name is a directory a path
827827
separator is added at the end. For a file name that does not
828828
exist and does not have an absolute path the result is
829-
unpredictable.
829+
unpredictable. On MS-Windows an 8.3 filename is expanded to
830+
the long name.
830831
:8 Converts the path to 8.3 short format (currently only on
831-
win32). Will act on as much of a path that is an existing
832-
path.
832+
MS-Windows). Will act on as much of a path that is an
833+
existing path.
833834
:~ Reduce file name to be relative to the home directory, if
834835
possible. File name is unmodified if it is not below the home
835836
directory.

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 7.3. Last change: 2011 Apr 14
1+
*diff.txt* For Vim version 7.3. Last change: 2012 May 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -178,7 +178,7 @@ buffer. If you don't want a buffer to remain used for the diff do ":set
178178
nodiff" before hiding it.
179179

180180
*:diffu* *:diffupdate*
181-
:diffu[pdate] Update the diff highlighting and folds.
181+
:diffu[pdate][!] Update the diff highlighting and folds.
182182

183183
Vim attempts to keep the differences updated when you make changes to the
184184
text. This mostly takes care of inserted and deleted lines. Changes within a
@@ -187,6 +187,9 @@ To force the differences to be updated use: >
187187
188188
:diffupdate
189189
190+
If the ! is included Vim will check if the file was changed externally and
191+
needs to be reloaded. It will prompt for each changed file, like `:checktime`
192+
was used.
190193

191194
Vim will show filler lines for lines that are missing in one window but are
192195
present in another. These lines were inserted in another file or deleted in

runtime/doc/editing.txt

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 7.3. Last change: 2012 Apr 03
1+
*editing.txt* For Vim version 7.3. Last change: 2012 Jul 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -377,8 +377,9 @@ command that accepts more than one file name (like ":next file1 file2")
377377
embedded spaces must be escaped with a backslash.
378378

379379
*wildcard* *wildcards*
380-
Wildcards in {file} are expanded. Which wildcards are supported depends on
381-
the system. These are the common ones:
380+
Wildcards in {file} are expanded, but as with file completion, 'wildignore'
381+
and 'suffixes' apply. Which wildcards are supported depends on the system.
382+
These are the common ones:
382383
? matches one character
383384
* matches anything, including nothing
384385
** matches anything, including nothing, recurses into directories
@@ -422,9 +423,11 @@ You can have the backticks expanded as a Vim expression, instead of an
422423
external command, by using the syntax `={expr}` e.g.: >
423424
:e `=tempname()`
424425
The expression can contain just about anything, thus this can also be used to
425-
avoid the special meaning of '"', '|', '%' and '#'. Names are to be separated
426-
with line breaks. When the result is a |List| then each item is used as a
427-
name. Line breaks also separate names.
426+
avoid the special meaning of '"', '|', '%' and '#'. However, 'wildignore'
427+
does apply like to other wildcars.
428+
If the expression returns a string then names are to be separated with line
429+
breaks. When the result is a |List| then each item is used as a name. Line
430+
breaks also separate names.
428431

429432
*++opt* *[++opt]*
430433
The [++opt] argument can be used to force the value of 'fileformat',
@@ -1066,6 +1069,7 @@ The names can be in upper- or lowercase.
10661069
If there are other tab pages and quitting the last
10671070
window in the current tab page the current tab page is
10681071
closed |tab-page|.
1072+
Triggers the |QuitPre| autocommand event.
10691073

10701074
:conf[irm] q[uit] Quit, but give prompt when changes have been made, or
10711075
the last file in the argument list has not been
@@ -1215,21 +1219,21 @@ For versions of Vim where browsing is not supported, the command is executed
12151219
unmodified.
12161220

12171221
*browsefilter*
1218-
For MS Windows, you can modify the filters that are used in the browse dialog.
1219-
By setting the g:browsefilter or b:browsefilter variables, you can change the
1220-
filters globally or locally to the buffer. The variable is set to a string in
1221-
the format "{filter label}\t{pattern};{pattern}\n" where {filter label} is the
1222-
text that appears in the "Files of Type" comboBox, and {pattern} is the
1223-
pattern which filters the filenames. Several patterns can be given, separated
1224-
by ';'.
1222+
For MS Windows and GTK, you can modify the filters that are used in the browse
1223+
dialog. By setting the g:browsefilter or b:browsefilter variables, you can
1224+
change the filters globally or locally to the buffer. The variable is set to
1225+
a string in the format "{filter label}\t{pattern};{pattern}\n" where {filter
1226+
label} is the text that appears in the "Files of Type" comboBox, and {pattern}
1227+
is the pattern which filters the filenames. Several patterns can be given,
1228+
separated by ';'.
12251229

12261230
For Motif the same format is used, but only the very first pattern is actually
12271231
used (Motif only offers one pattern, but you can edit it).
12281232

12291233
For example, to have only Vim files in the dialog, you could use the following
12301234
command: >
12311235
1232-
let g:browsefilter="Vim Scripts\t*.vim\nVim Startup Files\t*vimrc\n"
1236+
let g:browsefilter = "Vim Scripts\t*.vim\nVim Startup Files\t*vimrc\n"
12331237
12341238
You can override the filter setting on a per-buffer basis by setting the
12351239
b:browsefilter variable. You would most likely set b:browsefilter in a
@@ -1239,6 +1243,13 @@ difficult to start editing a file of a different type. To overcome this, you
12391243
may want to add "All Files\t*.*\n" as the final filter, so that the user can
12401244
still access any desired file.
12411245

1246+
To avoid setting browsefilter when Vim does not actually support it, you can
1247+
use has("browsefilter"): >
1248+
1249+
if has("browsefilter")
1250+
let g:browsefilter = "whatever"
1251+
endif
1252+
12421253
==============================================================================
12431254
7. The current directory *current-directory*
12441255

0 commit comments

Comments
 (0)