Skip to content

Commit cc8a9dc

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents c8a233b + 17471e8 commit cc8a9dc

58 files changed

Lines changed: 1430 additions & 728 deletions

Some content is hidden

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

Filelist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ SRC_ALL = \
119119
src/testdir/test[0-9]*a.ok \
120120
src/testdir/test_[a-z]*.ok \
121121
src/testdir/test49.vim \
122-
src/testdir/test60.vim \
123122
src/testdir/test83-tags? \
124123
src/testdir/test77a.com \
125124
src/testdir/test_*.vim \
@@ -138,9 +137,10 @@ SRC_ALL = \
138137
src/testdir/samples/*.txt \
139138
src/testdir/samples/test000 \
140139
src/testdir/if_ver*.vim \
141-
src/testdir/xterm_ramp.vim \
140+
src/testdir/color_ramp.vim \
142141
src/proto.h \
143142
src/proto/arabic.pro \
143+
src/proto/beval.pro \
144144
src/proto/blowfish.pro \
145145
src/proto/buffer.pro \
146146
src/proto/channel.pro \

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ matrix:
1616

1717
before_build:
1818
- '"C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release'
19+
- 'set INCLUDE=%INCLUDE%C:\Program Files (x86)\Windows Kits\8.1\Include\um'
1920

2021
build_script:
2122
- src/appveyor.bat

runtime/doc/debugger.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*debugger.txt* For Vim version 8.0. Last change: 2005 Mar 29
1+
*debugger.txt* For Vim version 8.0. Last change: 2017 Nov 21
22

33

44
VIM REFERENCE MANUAL by Gordon Prieur
@@ -95,10 +95,12 @@ list and colors can be set via X resources (XmNballoonEvalFontList,
9595
XmNballoonEvalBackground, and XmNballoonEvalForeground).
9696
The 'balloondelay' option sets the delay before an attempt is made to show a
9797
balloon.
98-
The 'ballooneval' option needs to be set to switch it on.
98+
The 'ballooneval' and/or the 'balloonevalterm' option needs to be set to
99+
switch it on.
99100

100-
Balloon evaluation is only available when compiled with the |+balloon_eval|
101-
feature.
101+
Balloon evaluation is only available in the GUI when compiled with the
102+
|+balloon_eval| feature. For the terminal the |+balloon_eval_term| feature
103+
matters.
102104

103105
The Balloon evaluation functions are also used to show a tooltip for the
104106
toolbar. The 'ballooneval' option does not need to be set for this. But the

runtime/doc/editing.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*editing.txt* For Vim version 8.0. Last change: 2017 Aug 21
1+
*editing.txt* For Vim version 8.0. Last change: 2017 Nov 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -900,7 +900,7 @@ Note: When the 'write' option is off, you are not able to write any file.
900900

901901
*:w* *:write*
902902
*E502* *E503* *E504* *E505*
903-
*E512* *E514* *E667* *E796*
903+
*E512* *E514* *E667* *E796* *E949*
904904
:w[rite] [++opt] Write the whole buffer to the current file. This is
905905
the normal way to save changes to a file. It fails
906906
when the 'readonly' option is set or when there is
@@ -956,6 +956,9 @@ used, for example, when the write fails and you want to try again later with
956956
":w #". This can be switched off by removing the 'A' flag from the
957957
'cpoptions' option.
958958

959+
Note that the 'fsync' option matters here. If it's set it may make writes
960+
slower (but safer).
961+
959962
*:sav* *:saveas*
960963
:sav[eas][!] [++opt] {file}
961964
Save the current buffer under the name {file} and set

runtime/doc/eval.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 8.0. Last change: 2017 Nov 16
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Nov 19
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2748,6 +2748,8 @@ bufexists({expr}) *bufexists()*
27482748
The result is a Number, which is |TRUE| if a buffer called
27492749
{expr} exists.
27502750
If the {expr} argument is a number, buffer numbers are used.
2751+
Number zero is the alternate buffer for the current window.
2752+
27512753
If the {expr} argument is a string it must match a buffer name
27522754
exactly. The name can be:
27532755
- Relative to the current directory.

runtime/doc/mbyte.txt

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ For changing the language of messages and menus see |mlang.txt|.
2626
7. Input on X11 |mbyte-XIM|
2727
8. Input on MS-Windows |mbyte-IME|
2828
9. Input with a keymap |mbyte-keymap|
29-
10. Using UTF-8 |mbyte-utf8|
30-
11. Overview of options |mbyte-options|
29+
10. Input with imactivatefunc() |mbyte-func|
30+
11. Using UTF-8 |mbyte-utf8|
31+
12. Overview of options |mbyte-options|
3132

3233
NOTE: This file contains UTF-8 characters. These may show up as strange
3334
characters or boxes when using another encoding.
@@ -1254,7 +1255,35 @@ Combining forms:
12541255
ﭏ 0xfb4f Xal alef-lamed
12551256

12561257
==============================================================================
1257-
10. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8*
1258+
10. Input with imactivatefunc() *mbyte-func*
1259+
1260+
Vim has |imactivatefunc()| and |imstatusfunc()|. This is useful to
1261+
activate/deativate input method from Vim in any way, also with an external
1262+
command. For example, fcitx provide fcitx-remote command: >
1263+
1264+
set iminsert=2
1265+
set imsearch=2
1266+
set imcmdline
1267+
1268+
set imactivatefunc=ImActivate
1269+
function! ImActivate(active)
1270+
if a:active
1271+
call system('fcitx-remote -o')
1272+
else
1273+
call system('fcitx-remote -c')
1274+
endif
1275+
endfunction
1276+
1277+
set imstatusfunc=ImStatus
1278+
function! ImStatus()
1279+
return system('fcitx-remote')[0] is# '2'
1280+
endfunction
1281+
1282+
Using this script, you can activate/deactivate XIM via Vim even when it is not
1283+
compiled with |+xim|.
1284+
1285+
==============================================================================
1286+
11. Using UTF-8 *mbyte-utf8* *UTF-8* *utf-8* *utf8*
12581287
*Unicode* *unicode*
12591288
The Unicode character set was designed to include all characters from other
12601289
character sets. Therefore it is possible to write text in any language using
@@ -1402,7 +1431,7 @@ not everybody is able to type a composing character.
14021431

14031432

14041433
==============================================================================
1405-
11. Overview of options *mbyte-options*
1434+
12. Overview of options *mbyte-options*
14061435

14071436
These options are relevant for editing multi-byte files. Check the help in
14081437
options.txt for detailed information.

runtime/doc/options.txt

Lines changed: 37 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4379,10 +4379,10 @@ A jump table for the options with a short description can be found at |Q_op|.
43794379
'imactivatefunc' 'imaf' string (default "")
43804380
global
43814381
{not in Vi}
4382-
{only available when compiled with |+xim| and
4383-
|+GUI_GTK|}
4382+
{only available when compiled with |+mbyte|}
43844383
This option specifies a function that will be called to
4385-
activate/inactivate Input Method.
4384+
activate or deactivate the Input Method.
4385+
It is not used in the GUI.
43864386

43874387
Example: >
43884388
function ImActivateFunc(active)
@@ -4431,8 +4431,7 @@ A jump table for the options with a short description can be found at |Q_op|.
44314431
'imcmdline' 'imc' boolean (default off)
44324432
global
44334433
{not in Vi}
4434-
{only available when compiled with the |+xim|,
4435-
|+multi_byte_ime| or |global-ime| features}
4434+
{only available when compiled with |+mbyte|}
44364435
When set the Input Method is always on when starting to edit a command
44374436
line, unless entering a search pattern (see 'imsearch' for that).
44384437
Setting this option is useful when your input method allows entering
@@ -4443,9 +4442,7 @@ A jump table for the options with a short description can be found at |Q_op|.
44434442
'imdisable' 'imd' boolean (default off, on for some systems (SGI))
44444443
global
44454444
{not in Vi}
4446-
{only available when compiled with the |+xim|,
4447-
|+multi_byte_ime| or |global-ime| features, always
4448-
available in MacVim}
4445+
{only available when compiled with |+mbyte|}
44494446
When set the Input Method is never used. This is useful to disable
44504447
the IM when it doesn't work properly.
44514448
Currently this option is on by default for SGI/IRIX. This may change
@@ -4460,8 +4457,6 @@ A jump table for the options with a short description can be found at |Q_op|.
44604457
0 :lmap is off and IM is off
44614458
1 :lmap is ON and IM is off
44624459
2 :lmap is off and IM is ON
4463-
2 is available only when compiled with the |+multi_byte_ime|, |+xim|
4464-
or |global-ime|.
44654460
To always reset the option to zero when leaving Insert mode with <Esc>
44664461
this can be used: >
44674462
:inoremap <ESC> <ESC>:set iminsert=0<CR>
@@ -4474,6 +4469,10 @@ A jump table for the options with a short description can be found at |Q_op|.
44744469
The value 0 may not work correctly with Athena and Motif with some XIM
44754470
methods. Use 'imdisable' to disable XIM then.
44764471

4472+
You can set 'imactivatefunc' and 'imstatusfunc' to handle IME/XIM
4473+
via external command if vim is not compiled with the |+xim|,
4474+
|+multi_byte_ime| or |global-ime|.
4475+
44774476
*'imsearch'* *'ims'*
44784477
'imsearch' 'ims' number (default -1)
44794478
local to buffer
@@ -4496,10 +4495,10 @@ A jump table for the options with a short description can be found at |Q_op|.
44964495
'imstatusfunc' 'imsf' string (default "")
44974496
global
44984497
{not in Vi}
4499-
{only available when compiled with |+xim| and
4500-
|+GUI_GTK|}
4498+
{only available when compiled with |+mbyte|}
45014499
This option specifies a function that is called to obtain the status
45024500
of Input Method. It must return a positive number when IME is active.
4501+
It is not used in the GUI.
45034502

45044503
Example: >
45054504
function ImStatusFunc()
@@ -6347,11 +6346,34 @@ A jump table for the options with a short description can be found at |Q_op|.
63476346

63486347
Example: >
63496348
set encoding=utf-8
6350-
set gfn=Ricty_Diminished:h12:cSHIFTJIS
6349+
set gfn=Ricty_Diminished:h12
63516350
set rop=type:directx
63526351
<
6353-
If select a raster font (Courier, Terminal or FixedSys) to
6354-
'guifont', it fallbacks to be drawn by GDI automatically.
6352+
If select a raster font (Courier, Terminal or FixedSys which
6353+
have ".fon" extension in file name) to 'guifont', it will be
6354+
drawn by GDI as a fallback. This fallback will cause
6355+
significant slow down on drawing.
6356+
6357+
NOTE: It is known that some fonts and options combination
6358+
causes trouble on drawing glyphs.
6359+
6360+
- 'rendmode:5' and 'renmode:6' will not work with some
6361+
special made fonts (True-Type fonts which includes only
6362+
bitmap glyphs).
6363+
- 'taamode:3' will not work with some vector fonts.
6364+
6365+
NOTE: With this option, you can display colored emoji
6366+
(emoticon) in Windows 8.1 or later. To display colored emoji,
6367+
there are some conditions which you should notice.
6368+
6369+
- If your font includes non-colored emoji already, it will
6370+
be used.
6371+
- If your font doesn't have emoji, the system chooses an
6372+
alternative symbol font. On Windows 10, "Segoe UI Emoji"
6373+
will be used.
6374+
- When this alternative font didn't have fixed width glyph,
6375+
emoji might be rendered beyond the bounding box of drawing
6376+
cell.
63556377

63566378
Other render types are currently not supported.
63576379

runtime/doc/quickref.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickref.txt* For Vim version 8.0. Last change: 2017 Oct 19
1+
*quickref.txt* For Vim version 8.0. Last change: 2017 Nov 21
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -618,7 +618,8 @@ Short explanation of each option: *option-list*
618618
'backupext' 'bex' extension used for the backup file
619619
'backupskip' 'bsk' no backup for files that match these patterns
620620
'balloondelay' 'bdlay' delay in mS before a balloon may pop up
621-
'ballooneval' 'beval' switch on balloon evaluation
621+
'ballooneval' 'beval' switch on balloon evaluation in the GUI
622+
'balloonevalterm' 'bevalterm' switch on balloon evaluation in the terminal
622623
'balloonexpr' 'bexpr' expression to show in balloon
623624
'belloff' 'bo' do not ring the bell for these reasons
624625
'binary' 'bin' read/write/edit file in binary mode

runtime/doc/remote.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*remote.txt* For Vim version 8.0. Last change: 2017 Aug 01
1+
*remote.txt* For Vim version 8.0. Last change: 2017 Nov 12
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -182,7 +182,8 @@ name on the 'VimRegistry' property on the root window.
182182

183183
A non GUI Vim with access to the X11 display (|xterm-clipboard| enabled), can
184184
also act as a command server if a server name is explicitly given with the
185-
--servername argument.
185+
--servername argument, or when Vim was build with the |+autoservername|
186+
feature.
186187

187188
An empty --servername argument will cause the command server to be disabled.
188189

runtime/doc/starting.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 8.0. Last change: 2017 Nov 11
1+
*starting.txt* For Vim version 8.0. Last change: 2017 Nov 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -58,9 +58,9 @@ filename One or more file names. The first one will be the current
5858
that is read from stdin. The commands that would normally be
5959
read from stdin will now be read from stderr. Example: >
6060
find . -name "*.c" -print | vim -
61-
< The buffer will be marked modified, because it contains text
62-
that needs to be saved. Except when in readonly mode, then
63-
the buffer is not marked modified. Example: >
61+
< The buffer will not be marked as modified, so that it's easy
62+
to exit. Be careful to mark it as modified if you don't want
63+
to accidentally lose it. Example: >
6464
ls | view -
6565
<
6666
Starting in Ex mode: >
@@ -421,7 +421,9 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
421421
*--not-a-term*
422422
--not-a-term Tells Vim that the user knows that the input and/or output is
423423
not connected to a terminal. This will avoid the warning and
424-
the two second delay that would happen. {not in Vi}
424+
the two second delay that would happen.
425+
Also avoids the "Reading from stdin..." message.
426+
{not in Vi}
425427

426428
*--ttyfail*
427429
--ttyfail When the stdin or stdout is not a terminal (tty) then exit

0 commit comments

Comments
 (0)