Skip to content

Commit

Permalink
Merge branch 'vim'
Browse files Browse the repository at this point in the history
Conflicts:
	runtime/doc/tags
	src/auto/configure
	src/globals.h
  • Loading branch information
b4winckler committed Jul 17, 2012
2 parents 3c27d4f + b50c837 commit 35a0655
Show file tree
Hide file tree
Showing 145 changed files with 21,407 additions and 23,413 deletions.
73 changes: 73 additions & 0 deletions .hgtags
Expand Up @@ -1868,3 +1868,76 @@ fa17c8646feb4719639150f1c301ce6c1557afb7 v7-3-528
d83218a156dd8258a5f2f3ae019c56f3e8851d48 v7-3-529
81d5f3a3e27fff9188ae34c41b939fc88c9837de v7-3-530
c44f0f7424b98d321d90994198374628911623ce v7-3-531
9755d151c7492a5f1d0e77a2d3c9e414f20f3b4e v7-3-532
74d51b51f3e69df7d3295255ee10391b3409055b v7-3-533
65f905eb14cd373e205ff4c8a53027514e96d819 v7-3-534
f52d2ea0f81c20e6f026d74cec66b135d5470d2d v7-3-535
a8897fd5d074d7baaba692013521304b13beb784 v7-3-536
96715c3a905faa1bbdc50b16b0f57671b4758e0c v7-3-537
bbf1fbbe4ab45442f8876790004805503e25f563 v7-3-538
7a710cf51d73cb3c3c76fcea34ee706443800c54 v7-3-539
af083cb521bcb69aae315654a3873c488dc58c43 v7-3-540
5c1aaf9b4b1bc2d14d627fe22d414f3a2525c50b v7-3-541
8d1b63e6d3173625324f4adfe733efc8091f9422 v7-3-542
ce7bd50bafa74f4da979f27c4e5fa9a47e69d739 v7-3-543
09d0bda69df0c5eb505a02e37a978e92fbc89332 v7-3-544
e7ff3251dfa157284a48c5322783499d079e3eb0 v7-3-545
0a364618c0e59fa777f526c99bee608bb5cf55ce v7-3-546
4f4db5d661c4fae42f2d917c09549d58a2f4d05f v7-3-547
8625e38066dbf6a4d5e2563fbe191c3910681d2e v7-3-548
c0c935956ac3b7c706043e5c7c0ba840636fb10f v7-3-549
297771eff080ed3bcfb2ade57c2dcab34bac5de8 v7-3-550
e83c5dcea112a44f9a7b06042b52798e32d96541 v7-3-551
443c50cd3e8811b58a4ca131ab21abd18aea9489 v7-3-552
583e46e4a56c40fa1a7336be85eaec93f6800edf v7-3-553
a967a979c37f458bd4d164afb8a6192a5b4a6fde v7-3-554
8fb7bd9dfb2b26b43725c90e042d2089762466a6 v7-3-555
b8924014a03991b79947d735a894e2c2e8f94980 v7-3-556
a220dd97b5c7218558eaea27d301af2ed4f9ec2d v7-3-557
34724dc5172bb81a9e670c5bd23edbe6a124fd28 v7-3-558
74adc9f7e15b8c088abd04de35615cad6c83a811 v7-3-559
0abd38ba64557c4a6d62575aaa3fc7ab6482d747 v7-3-560
a1de7928a7aba45240c85a2bc8d70adadc49e4dc v7-3-561
b2763055bdf26e1f11bf8cfb0601fefbefb34e0d v7-3-562
02c86cdcf9a23f092400c7631e5906cb9053703b v7-3-563
683de93060968ed4e9dfb7992910c75f479471ec v7-3-564
5f811338b1186e1aef683d03fa05a8026d30e9f1 v7-3-565
18c6b1752d0baab043792d3f6267ec393f7a11e1 v7-3-566
f90bb88c261582fef85c16009f19168b38debd74 v7-3-567
3b5f541269e2d9e57b82ea1ec89c6747e2003434 v7-3-568
c052f3b79b9948e7072580e7db42f90c92eb40af v7-3-569
4f1c511e71f851c4f1c14e950f95ebd6967c6ed1 v7-3-570
43fd3896fab7be5ad01deed2960d37d91ba65691 v7-3-571
3ae387af405f46e200fdf9bc204d0a251864abb9 v7-3-572
802b1a1b275f5c8f95724d50d53642f221621d79 v7-3-573
3ac005f02cf015b3aa246482c6331bd61c08d91a v7-3-574
79ae10bd056520fb6367247804af22e52d2de8b8 v7-3-575
7e3fedfc3d08d020e3ce047ec1a1cfd195af9ed7 v7-3-576
286ba0251c0aff1a664a481846c1f4107fae0c11 v7-3-577
0e9b2622c94a8edf906d6c44831c1cded7184d13 v7-3-578
80ed6aa7b9eb18058a0b105af2ecd7b213891be2 v7-3-579
f02b6ad168ae82ead0286b64627762ab2343ee96 v7-3-580
96249a1803e28e6173faed53f8687334aa63360c v7-3-581
d383bc2ba8112103389a44c2c747eaa1016da935 v7-3-582
a69b1d711ff9d8b227acff694c53310cf237933f v7-3-583
2d107086903af80afee524549e57d3ba016b3f12 v7-3-584
d258a0c5c38a6a604b983b6499a0f02bc061c816 v7-3-585
8393a16069fb5f7b22ab766167b698e4dc129911 v7-3-586
a34fb0a077c9c26946727a25222e0a99dc08db0d v7-3-587
e92cc285632dc29d932061970e43b53cdbb3460d v7-3-588
e82937b753a8ca6705bf55dbf258f077746ec428 v7-3-589
bdf7f3e4c763f2a038c397af8eb6b8950e58db6b v7-3-590
e5b925ae56e36e86eb2ff059aa28d6a2dd332845 v7-3-591
0e06193d4bd7be03924dd9c6251a64c6c6adf78d v7-3-592
46896c29edd74418c665af7c1ed685aa52a41e1a v7-3-593
5e7b500dbb7e9e964457d300b536aeba9771af6c v7-3-594
928e7cef8836d13d4f2a17234e127b928ee63ff4 v7-3-595
5aad2c444a00a2309e6e373b6bcb5441669ba126 v7-3-596
b9aa7fb4a9281b87a651251f799e049409634757 v7-3-597
f0747581607924c30530687fa88ebaa57602eb5f v7-3-598
b06578f1390fea339a2d9d18e12758ec1dbcc279 v7-3-599
8f98038a0bf34310a8224a569eacd539b7b8b649 v7-3-600
c1780b4cb9955fc113c3c993c18c139e06425ef5 v7-3-601
5cacdf56c94b6fa1992f7e9c07c95bfe52bcccec v7-3-602
085f14642fe828b1cbae5706ca87f2932cebeb75 v7-3-603
acd91c9741a6d0185b7c63db412888de4f904118 v7-3-604
3 changes: 3 additions & 0 deletions Filelist
Expand Up @@ -463,6 +463,7 @@ RT_ALL = \
runtime/macros/hanoi/hanoi.vim \
runtime/macros/hanoi/poster \
runtime/macros/justify.vim \
runtime/macros/less.bat \
runtime/macros/less.sh \
runtime/macros/less.vim \
runtime/macros/life/click.me \
Expand Down Expand Up @@ -666,6 +667,8 @@ EXTRA = \

# generic language files
LANG_GEN = \
runtime/doc/*-de.1 \
runtime/doc/*-de.UTF-8.1 \
runtime/doc/*-fr.1 \
runtime/doc/*-fr.UTF-8.1 \
runtime/doc/*-it.1 \
Expand Down
4 changes: 2 additions & 2 deletions runtime/autoload/ccomplete.vim
@@ -1,7 +1,7 @@
" Vim completion script
" Language: C
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last Change: 2011 Dec 30
" Last Change: 2012 Jun 20

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

let qflist = getqflist()
if len(qflist) > 0 || match(typename, "::") < 0
Expand Down
17 changes: 16 additions & 1 deletion runtime/doc/autocmd.txt
@@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 7.3. Last change: 2012 Feb 22
*autocmd.txt* For Vim version 7.3. Last change: 2012 Jul 10


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

*CompleteDone*
CompleteDone After Insert mode completion is done. Either
when something was completed or abandoning
completion. |ins-completion|

*CursorHold*
CursorHold When the user doesn't press a key for the time
specified with 'updatetime'. Not re-triggered
Expand Down Expand Up @@ -717,6 +726,12 @@ QuickFixCmdPost Like QuickFixCmdPre, but after a quickfix
it is run after error file is read and before
moving to the first error.
See |QuickFixCmdPost-example|.
*QuitPre*
QuitPre When using `:quit`, before deciding whether it
closes the current window or quits Vim. Can
be used to close any non-essential window if
the current window is the last ordinary
window.
*RemoteReply*
RemoteReply When a reply from a Vim that functions as
server was received |server2client()|. The
Expand Down
9 changes: 8 additions & 1 deletion runtime/doc/change.txt
@@ -1,4 +1,4 @@
*change.txt* For Vim version 7.3. Last change: 2012 Apr 30
*change.txt* For Vim version 7.3. Last change: 2012 Jun 13


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1502,6 +1502,7 @@ n When formatting text, recognize numbered lists. This actually uses
first line of a paragraph
second line of the same paragraph
third line.
< This also works inside comments, ignoring the comment leader.
v Vi-compatible auto-wrapping in insert mode: Only break a line at a
blank that you have entered during the current insert command. (Note:
this is not 100% Vi compatible. Vi has some "unexpected features" or
Expand All @@ -1522,6 +1523,12 @@ B When joining lines, don't insert a space between two multi-byte
characters. Overruled by the 'M' flag.
1 Don't break a line after a one-letter word. It's broken before it
instead (if possible).
j Where it makes sense, remove a comment leader when joining lines. For
example, joining:
int i; // the index ~
// in the list ~
Becomes:
int i; // the index in the list ~


With 't' and 'c' you can specify when Vim performs auto-wrapping:
Expand Down
9 changes: 5 additions & 4 deletions runtime/doc/cmdline.txt
@@ -1,4 +1,4 @@
*cmdline.txt* For Vim version 7.3. Last change: 2012 Feb 05
*cmdline.txt* For Vim version 7.3. Last change: 2012 Jun 20


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -826,10 +826,11 @@ These modifiers can be given, in this order:
the home directory. If the name is a directory a path
separator is added at the end. For a file name that does not
exist and does not have an absolute path the result is
unpredictable.
unpredictable. On MS-Windows an 8.3 filename is expanded to
the long name.
:8 Converts the path to 8.3 short format (currently only on
win32). Will act on as much of a path that is an existing
path.
MS-Windows). Will act on as much of a path that is an
existing path.
:~ Reduce file name to be relative to the home directory, if
possible. File name is unmodified if it is not below the home
directory.
Expand Down
39 changes: 25 additions & 14 deletions runtime/doc/editing.txt
@@ -1,4 +1,4 @@
*editing.txt* For Vim version 7.3. Last change: 2012 Apr 03
*editing.txt* For Vim version 7.3. Last change: 2012 Jul 10


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

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

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

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

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

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

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

To avoid setting browsefilter when Vim does not actually support it, you can
use has("browsefilter"): >
if has("browsefilter")
let g:browsefilter = "whatever"
endif
==============================================================================
7. The current directory *current-directory*

Expand Down
33 changes: 31 additions & 2 deletions runtime/doc/eval.txt
@@ -1,4 +1,4 @@
*eval.txt* For Vim version 7.3. Last change: 2012 May 18
*eval.txt* For Vim version 7.3. Last change: 2012 Jul 10


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -1880,6 +1880,8 @@ pow( {x}, {y}) Float {x} to the power of {y}
prevnonblank( {lnum}) Number line nr of non-blank line <= {lnum}
printf( {fmt}, {expr1}...) String format text
pumvisible() Number whether popup menu is visible
pyeval( {expr}) any evaluate |Python| expression
py3eval( {expr}) any evaluate |python3| expression
range( {expr} [, {max} [, {stride}]])
List items from {expr} to {max}
readfile( {fname} [, {binary} [, {max}]])
Expand Down Expand Up @@ -3565,6 +3567,9 @@ histadd({history}, {item}) *histadd()*
"search" or "/" search pattern history
"expr" or "=" typed expression history
"input" or "@" input line history
"debug" or ">" debug command history
The {history} string does not need to be the whole name, one
character is sufficient.
If {item} does already exist in the history, it will be
shifted to become the newest entry.
The result is a Number: 1 if the operation was successful,
Expand Down Expand Up @@ -4033,7 +4038,7 @@ map({expr}, {string}) *map()*

The operation is done in-place. If you want a |List| or
|Dictionary| to remain unmodified make a copy first: >
:let tlist = map(copy(mylist), ' & . "\t"')
:let tlist = map(copy(mylist), ' v:val . "\t"')
< Returns {expr}, the |List| or |Dictionary| that was filtered.
When an error is encountered while evaluating {string} no
Expand Down Expand Up @@ -4610,6 +4615,29 @@ pumvisible() *pumvisible()*
This can be used to avoid some things that would remove the
popup menu.

*E860* *E861*
py3eval({expr}) *py3eval()*
Evaluate Python expression {expr} and return its result
converted to Vim data structures.
Numbers and strings are returned as they are (strings are
copied though, unicode strings are additionally converted to
'encoding').
Lists are represented as Vim |List| type.
Dictionaries are represented as Vim |Dictionary| type with
keys converted to strings.
{only available when compiled with the |+python3| feature}

*E858* *E859*
pyeval({expr}) *pyeval()*
Evaluate Python expression {expr} and return its result
converted to Vim data structures.
Numbers and strings are returned as they are (strings are
copied though).
Lists are represented as Vim |List| type.
Dictionaries are represented as Vim |Dictionary| type with
keys converted to strings.
{only available when compiled with the |+python| feature}

*E726* *E727*
range({expr} [, {max} [, {stride}]]) *range()*
Returns a |List| with Numbers:
Expand Down Expand Up @@ -6219,6 +6247,7 @@ balloon_multiline GUI supports multiline balloons.
beos BeOS version of Vim.
browse Compiled with |:browse| support, and browse() will
work.
browsefilter Compiled with support for |browsefilter|.
builtin_terms Compiled with some builtin terminals.
byte_offset Compiled with support for 'o' in 'statusline'
cindent Compiled with 'cindent' support.
Expand Down
4 changes: 2 additions & 2 deletions runtime/doc/if_lua.txt
@@ -1,4 +1,4 @@
*if_lua.txt* For Vim version 7.3. Last change: 2012 Jan 16
*if_lua.txt* For Vim version 7.3. Last change: 2012 Jun 29


VIM REFERENCE MANUAL by Luis Carvalho
Expand Down Expand Up @@ -313,7 +313,7 @@ Examples:
<

==============================================================================
7. The luaeval function *lua-luaeval*
7. The luaeval function *lua-luaeval* *lua-eval*

The (dual) equivalent of "vim.eval" for passing Lua values to Vim is
"luaeval". "luaeval" takes an expression string and an optional argument and
Expand Down

0 comments on commit 35a0655

Please sign in to comment.