Skip to content

Commit e1b7b6e

Browse files
committed
Merge remote branch 'vim/master' into kaoriya
Conflicts: .hgtags
2 parents bb98507 + 86b1605 commit e1b7b6e

Some content is hidden

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

106 files changed

+1816
-7055
lines changed

.hgtags

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1512,6 +1512,27 @@ ee48b3da9d53a487f3636df34cace6400d13f32c v7-3-172
15121512
537e0102c0f9cc2c0656c298ed1534ef30176eb8 v7-3-175
15131513
94f42ae4e4e66483fb6cc7305c61820b004c6182 v7-3-176
15141514
66f2d62271fe77d4acdda5808bd0d3a45be3149c v7-3-177
1515+
ac639ca9f58f7c71551c19090473395d81a021b6 v7-3-178
1516+
11e62fb6f8154537f92be5f278c31e737247f781 v7-3-179
1517+
ed47d18b39c6a672ad4f0caa2f2c3ee897e784a7 v7-3-180
1518+
5381eb5b1eb9c39797c435ad904bfcb71f1efb01 v7-3-181
1519+
21346361ce6c7e9afca2e475ceb62f6244197919 v7-3-182
1520+
e4403440e192d082af7dc8fe3e1a12d24f0e259c v7-3-183
1521+
b941cc96926a26b62d59f759a021ddb5b51823ed v7-3-184
1522+
9c8dffc62a41a143230f76376f9a3abf46ff3536 v7-3-185
1523+
3d1a3aa0240c7a9acdf3feb77b664798e3703463 v7-3-186
1524+
8bd38abda3149cce7043da86e6093dbebecf63df v7-3-187
1525+
f2e1c3a90a3bda6ce8977187b365745efd4e5c35 v7-3-188
1526+
71e1da07e1414740d1d0eed47a346cb3292a9e2e v7-3-189
1527+
30b7cde2194064040cb7d7e6485a5712b2fc9b40 v7-3-190
1528+
107b03fdf1ad831e2697c22a04bd3eeaca08c291 v7-3-191
1529+
8470ac4679c17b69aefb06989c6e8a267761988a v7-3-192
1530+
e1c5f69de95b99112fae28c23ce6427ca251e50f v7-3-193
1531+
664c1adcb909aca654c4fe9200364cc741068803 v7-3-194
1532+
8dbea5adc937ecddf8ca336856cd487e1b118b1a v7-3-195
1533+
d641f141f9376b3ecf2146e5d68c38bf0227c970 v7-3-196
1534+
45c536fe48db330c4ee8f1056befe702d9d19cfe v7-3-197
1535+
b0190e93e601f9061a797689a1eb95a86805f769 v7-3-198
15151536
1aa9c79ff847cd945974dd6dec5172795ba6ad7a kaoriya-charspace
15161537
fb2739bfd7c786b788ef7bcd988b61071d2ebd82 kaoriya-transparency
15171538
c6ee0daceb5d8ed4c5d6f9c1d29a82c1d37a62f3 kaoriya-migemo

Filelist

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -427,20 +427,13 @@ SRC_EXTRA = \
427427
$(SRC_VMS) \
428428
README_os390.txt \
429429
src/Make_mint.mak \
430-
src/Make_ro.mak \
431-
src/gui_riscos.c \
432-
src/gui_riscos.h \
433430
src/if_sniff.c \
434431
src/infplist.xml \
435432
src/link.390 \
436433
src/os_beos.c \
437434
src/os_beos.h \
438435
src/os_beos.rsrc \
439436
src/os_mint.h \
440-
src/os_riscos.c \
441-
src/os_riscos.h \
442-
src/proto/gui_riscos.pro \
443-
src/proto/os_riscos.pro \
444437
src/os_vms_fix.com \
445438
src/toolbar.phi \
446439

README_extra.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ src/if_sniff.* Interface to SNiFF. If you don't know what SNiFF is,
1313

1414
src/os_amiga.* Files for the Amiga port.
1515

16-
src/gui_riscos.*
17-
src/os_riscos.* Files for the RISC OS port.
18-
1916
src/gui_beos.*
2017
src/os_beos.* Files for the BeOS port.
2118

runtime/doc/autocmd.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ Name triggered by ~
299299
|InsertEnter| starting Insert mode
300300
|InsertChange| when typing <Insert> while in Insert or Replace mode
301301
|InsertLeave| when leaving Insert mode
302+
|InsertCharPre| when a character was typed in Insert mode, before
303+
inserting it
302304

303305
|ColorScheme| after loading a color scheme
304306

@@ -657,6 +659,17 @@ InsertChange When typing <Insert> while in Insert or
657659
indicates the new mode.
658660
Be careful not to move the cursor or do
659661
anything else that the user does not expect.
662+
*InsertCharPre*
663+
InsertCharPre When a character is typed in Insert mode,
664+
before inserting the char.
665+
The |v:char| variable indicates the char typed
666+
and can be changed during the event to insert
667+
a different character. When |v:char| is set
668+
to more than one character this text is
669+
inserted literally.
670+
It is not allowed to change the text |textlock|.
671+
The event is not triggered when 'paste' is
672+
set.
660673
*InsertEnter*
661674
InsertEnter Just before starting Insert mode. Also for
662675
Replace mode and Virtual Replace mode. The

runtime/doc/change.txt

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*change.txt* For Vim version 7.3. Last change: 2011 Feb 25
1+
*change.txt* For Vim version 7.3. Last change: 2011 May 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -522,11 +522,11 @@ comment (starting with '"') after the ":!" command.
522522
={motion} Filter {motion} lines through the external program
523523
given with the 'equalprg' option. When the 'equalprg'
524524
option is empty (this is the default), use the
525-
internal formatting function |C-indenting|. But when
526-
'indentexpr' is not empty, it will be used instead
527-
|indent-expression|. When Vim was compiled without
528-
internal formatting then the "indent" program is used
529-
as a last resort.
525+
internal formatting function |C-indenting| and
526+
|'lisp'|. But when 'indentexpr' is not empty, it will
527+
be used instead |indent-expression|. When Vim was
528+
compiled without internal formatting then the "indent"
529+
program is used as a last resort.
530530

531531
*==*
532532
== Filter [count] lines like with ={motion}.
@@ -919,8 +919,8 @@ inside of strings can change! Also see 'softtabstop' option. >
919919

920920
*:y* *:yank* *E850*
921921
:[range]y[ank] [x] Yank [range] lines [into register x]. Yanking to the
922-
"* or "+ registers is possible only in GUI versions or
923-
when the |+xterm_clipboard| feature is included.
922+
"* or "+ registers is possible only when the
923+
|+clipboard| feature is included.
924924

925925
:[range]y[ank] [x] {count}
926926
Yank {count} lines, starting with last line number
@@ -1390,16 +1390,19 @@ before typing anything else on the new line. This will replace the
13901390
middle-comment leader with the end-comment leader and apply any specified
13911391
alignment, leaving just " */". There is no need to hit BackSpace first.
13921392

1393+
When there is a match with a middle part, but there also is a maching end part
1394+
which is longer, the end part is used. This makes a C style comment work
1395+
without requiring the middle part to end with a space.
13931396

13941397
Here is an example of alignment flags at work to make a comment stand out
1395-
(kind of looks like a 1 too). Consider comment string >
1396-
sr:/***,m:**,ex2:******/
1397-
1398-
/***
1399-
**<--right aligned from "r" flag
1400-
**
1401-
offset 2 spaces from the "2" flag--->**
1402-
******/
1398+
(kind of looks like a 1 too). Consider comment string: >
1399+
:set comments=sr:/***,m:**,ex-2:******/
1400+
<
1401+
/*** ~
1402+
**<--right aligned from "r" flag ~
1403+
** ~
1404+
offset 2 spaces for the "-2" flag--->** ~
1405+
******/ ~
14031406
In this case, the first comment was typed, then return was pressed 4 times,
14041407
then "/" was pressed to end the comment.
14051408

@@ -1417,8 +1420,8 @@ Reindenting using a different method like |gq| or |=| will not consult
14171420
alignment flags either. The same behaviour can be defined in those other
14181421
formatting options. One consideration is that 'cindent' has additional options
14191422
for context based indenting of comments but cannot replicate many three piece
1420-
indent alignments. However, 'indentexpr' is has the ability to work better
1421-
with three piece comments.
1423+
indent alignments. However, 'indentexpr' has the ability to work better with
1424+
three piece comments.
14221425

14231426
Other examples: >
14241427
"b:*" Includes lines starting with "*", but not if the "*" is

runtime/doc/eval.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.3. Last change: 2011 Mar 18
1+
*eval.txt* For Vim version 7.3. Last change: 2011 May 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1293,6 +1293,7 @@ v:beval_winnr The number of the window, over which the mouse pointer is. Only
12931293
*v:char* *char-variable*
12941294
v:char Argument for evaluating 'formatexpr' and used for the typed
12951295
character when using <expr> in an abbreviation |:map-<expr>|.
1296+
It is also used by the |InsertPreChar| event.
12961297

12971298
*v:charconvert_from* *charconvert_from-variable*
12981299
v:charconvert_from
@@ -1545,7 +1546,9 @@ v:progname Contains the name (with path removed) with which Vim was
15451546

15461547
*v:register* *register-variable*
15471548
v:register The name of the register in effect for the current normal mode
1548-
command. If none is supplied it is the default register.
1549+
command. If none is supplied it is the default register '"',
1550+
unless 'clipboard' contains "unnamed" or "unnamedplus", then
1551+
it is '*' or '+'.
15491552
Also see |getreg()| and |setreg()|
15501553

15511554
*v:scrollstart* *scrollstart-variable*
@@ -4074,6 +4077,7 @@ match({expr}, {pat}[, {start}[, {count}]]) *match()*
40744077
{pat} matches.
40754078
A match at the first character or |List| item returns zero.
40764079
If there is no match -1 is returned.
4080+
For getting submatches see |matchlist()|.
40774081
Example: >
40784082
:echo match("testing", "ing") " results in 4
40794083
:echo match([1, 'x'], '\a') " results in 1
@@ -5579,6 +5583,10 @@ substitute({expr}, {pat}, {sub}, {flags}) *substitute()*
55795583
< This removes the last component of the 'path' option. >
55805584
:echo substitute("testing", ".*", "\\U\\0", "")
55815585
< results in "TESTING".
5586+
The {sub} argument can start with \=, just like with
5587+
|:substitute|. Example: >
5588+
:echo substitute(s, '%\(\x\x\)',
5589+
\ '\=nr2char("0x" . submatch(1))', 'g')
55825590
55835591
synID({lnum}, {col}, {trans}) *synID()*
55845592
The result is a Number, which is the syntax ID at the position
@@ -6222,7 +6230,8 @@ persistent_undo Compiled with support for persistent undo history.
62226230
postscript Compiled with PostScript file printing.
62236231
printer Compiled with |:hardcopy| support.
62246232
profile Compiled with |:profile| support.
6225-
python Compiled with Python interface.
6233+
python Compiled with Python 2.x interface. |has-python|
6234+
python3 Compiled with Python 3.x interface. |has-python|
62266235
qnx QNX version of Vim.
62276236
quickfix Compiled with |quickfix| support.
62286237
reltime Compiled with |reltime()| support.

runtime/doc/fold.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ level form a fold, with the lines with a higher level forming a nested fold.
6060
The nesting of folds is limited with 'foldnestmax'.
6161

6262
Some lines are ignored and get the fold level of the line above or below it,
63-
whatever is the lowest. These are empty or white lines and lines starting
63+
whichever is lower. These are empty or white lines and lines starting
6464
with a character in 'foldignore'. White space is skipped before checking for
6565
characters in 'foldignore'. For C use "#" to ignore preprocessor lines.
6666

runtime/doc/if_pyth.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*if_pyth.txt* For Vim version 7.3. Last change: 2010 Oct 20
1+
*if_pyth.txt* For Vim version 7.3. Last change: 2011 May 07
22

33

44
VIM REFERENCE MANUAL by Paul Moore
@@ -377,6 +377,18 @@ To work around such problems there are these options:
377377
3. You undefine PY_NO_RTLD_GLOBAL in auto/config.h after configuration. This
378378
may crash Vim though.
379379

380+
*has-python*
381+
You can test what Python version is available with: >
382+
if has('python')
383+
echo 'there is Pyton 2.x'
384+
elseif has('python3')
385+
echo 'there is Python 3.x'
386+
endif
387+
388+
Note however, that when Python 2 and 3 are both available and loaded
389+
dynamically, these has() calls will try to load them. If only one can be
390+
loaded at a time, just checking if Python 2 or 3 are available will prevent
391+
the other one from being available.
380392

381393
==============================================================================
382394
vim:tw=78:ts=8:ft=help:norl:

runtime/doc/intro.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*intro.txt* For Vim version 7.3. Last change: 2010 Dec 08
1+
*intro.txt* For Vim version 7.3. Last change: 2011 May 15
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -135,8 +135,10 @@ http://www.vim.org/maillist.php
135135

136136
Bug reports: *bugs* *bug-reports* *bugreport.vim*
137137

138-
Send bug reports to: Vim bugs <[email protected]>
139-
This is not a maillist but the message is redirected to the Vim maintainer.
138+
Send bug reports to: Vim Developers <[email protected]>
139+
This is a maillist, many people will see the message. If you don't want that,
140+
e.g. because it is a security issue, send it to <[email protected]>, this only goes
141+
to the Vim maintainer (that's Bram).
140142
Please be brief; all the time that is spent on answering mail is subtracted
141143
from the time that is spent on improving Vim! Always give a reproducible
142144
example and try to find out which settings or other things influence the

runtime/doc/map.txt

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*map.txt* For Vim version 7.3. Last change: 2011 Apr 13
1+
*map.txt* For Vim version 7.3. Last change: 2011 May 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -226,7 +226,7 @@ text before the cursor and start omni completion when some condition is met.
226226

227227
For abbreviations |v:char| is set to the character that was typed to trigger
228228
the abbreviation. You can use this to decide how to expand the {lhs}. You
229-
can't change v:char and you should not insert it.
229+
you should not either insert or change the v:char.
230230

231231
Be very careful about side effects! The expression is evaluated while
232232
obtaining characters, you may very well make the command dysfunctional.
@@ -480,9 +480,9 @@ You can create an empty {rhs} by typing nothing after a single CTRL-V (you
480480
have to type CTRL-V two times). Unfortunately, you cannot do this in a vimrc
481481
file.
482482
*<Nop>*
483-
A easier way to get a mapping that doesn't produce anything, is to use "<Nop>"
484-
for the {rhs}. This only works when the |<>| notation is enabled. For
485-
example, to make sure that function key 8 does nothing at all: >
483+
An easier way to get a mapping that doesn't produce anything, is to use
484+
"<Nop>" for the {rhs}. This only works when the |<>| notation is enabled.
485+
For example, to make sure that function key 8 does nothing at all: >
486486
:map <F8> <Nop>
487487
:map! <F8> <Nop>
488488
<
@@ -495,7 +495,7 @@ scenario: >
495495
:set encoding=utf-8
496496
The mapping for <M-C> is defined with the latin1 encoding, resulting in a 0xc3
497497
byte. If you type the character á (0xe1 <M-a>) in UTF-8 encoding this is the
498-
two bytes 0xc3 0xa1. You don't want the 0xc3 byte to be mapped then,
498+
two bytes 0xc3 0xa1. You don't want the 0xc3 byte to be mapped then or
499499
otherwise it would be impossible to type the á character.
500500

501501
*<Leader>* *mapleader*
@@ -1177,13 +1177,15 @@ reported if any are supplied). However, it is possible to specify that the
11771177
command can take arguments, using the -nargs attribute. Valid cases are:
11781178

11791179
-nargs=0 No arguments are allowed (the default)
1180-
-nargs=1 Exactly one argument is required
1181-
-nargs=* Any number of arguments are allowed (0, 1, or many)
1180+
-nargs=1 Exactly one argument is require, it includes spaces
1181+
-nargs=* Any number of arguments are allowed (0, 1, or many),
1182+
separated by white space
11821183
-nargs=? 0 or 1 arguments are allowed
11831184
-nargs=+ Arguments must be supplied, but any number are allowed
11841185

11851186
Arguments are considered to be separated by (unescaped) spaces or tabs in this
1186-
context.
1187+
context, except when there is one argument, then the white space is part of
1188+
the argument.
11871189

11881190
Note that arguments are used as text, not as expressions. Specifically,
11891191
"s:var" will use the script-local variable in the script where the command was

0 commit comments

Comments
 (0)