Skip to content

Commit 0648142

Browse files
committed
Update runtime files.
1 parent 4cc39a5 commit 0648142

11 files changed

Lines changed: 259 additions & 171 deletions

File tree

runtime/compiler/tidy.vim

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim compiler file
22
" Compiler: HTML Tidy
33
" Maintainer: Doug Kearns <[email protected]>
4-
" Last Change: 2013 Jul 7
4+
" Last Change: 2016 Apr 21
55

66
if exists("current_compiler")
77
finish
@@ -12,8 +12,8 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
1212
command -nargs=* CompilerSet setlocal <args>
1313
endif
1414

15-
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %
15+
CompilerSet makeprg=tidy\ -quiet\ -errors\ --gnu-emacs\ yes\ %:S
1616

17-
" sample warning: foo.html:8:1: Warning: inserting missing 'foobar' element
18-
" sample error: foo.html:9:2: Error: <foobar> is not recognized!
19-
CompilerSet errorformat=%f:%l:%c:\ Error:%m,%f:%l:%c:\ Warning:%m,%-G%.%#
17+
" foo.html:8:1: Warning: inserting missing 'foobar' element
18+
" foo.html:9:2: Error: <foobar> is not recognized!
19+
CompilerSet errorformat=%f:%l:%c:\ %trror:%m,%f:%l:%c:\ %tarning:%m,%-G%.%#

runtime/doc/channel.txt

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*channel.txt* For Vim version 7.4. Last change: 2016 Mar 28
1+
*channel.txt* For Vim version 7.4. Last change: 2016 Apr 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -396,6 +396,7 @@ To obtain the status of a channel: ch_status(channel). The possible results
396396
are:
397397
"fail" Failed to open the channel.
398398
"open" The channel can be used.
399+
"buffered" The channel was closed but there is data to read.
399400
"closed" The channel was closed.
400401

401402
To obtain the job associated with a channel: ch_getjob(channel)
@@ -451,7 +452,7 @@ it like this: >
451452
func MyHandler(channel, msg)
452453
453454
Without the handler you need to read the output with |ch_read()| or
454-
|ch_readraw()|.
455+
|ch_readraw()|. You can do this in the close callback, see |read-in-close-cb|.
455456

456457
The handler defined for "out_cb" will not receive stderr. If you want to
457458
handle that separately, add an "err_cb" handler: >
@@ -490,6 +491,21 @@ time a line is added to the buffer, the last-but-one line will be send to the
490491
job stdin. This allows for editing the last line and sending it when pressing
491492
Enter.
492493

494+
495+
Reading job output in the close callback ~
496+
*read-in-close-cb*
497+
If the job can take some time and you don't need intermediate results, you can
498+
add a close callback and read the output there: >
499+
500+
func! CloseHandler(channel)
501+
while ch_status(a:channel) == 'buffered'
502+
echomsg ch_read(a:channel)
503+
endwhile
504+
endfunc
505+
let job = job_start(command, {'close_cb': 'CloseHandler'})
506+
507+
You will want to do something more useful than "echomsg".
508+
493509
==============================================================================
494510
9. Starting a job without a channel *job-start-nochannel*
495511

runtime/doc/eval.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*eval.txt* For Vim version 7.4. Last change: 2016 Apr 20
1+
*eval.txt* For Vim version 7.4. Last change: 2016 Apr 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -46,6 +46,7 @@ Float A floating point number. |floating-point-format| *Float*
4646
{only when compiled with the |+float| feature}
4747
Examples: 123.456 1.15e-6 -1.1e3
4848

49+
*E928*
4950
String A NUL terminated string of 8-bit unsigned characters (bytes).
5051
|expr-string| Examples: "ab\txx\"--" 'x-z''a,c'
5152

@@ -2922,8 +2923,11 @@ ch_status({handle}) *ch_status()*
29222923
Return the status of {handle}:
29232924
"fail" failed to open the channel
29242925
"open" channel can be used
2926+
"buffered" channel can be read, not written to
29252927
"closed" channel can not be used
29262928
{handle} can be Channel or a Job that has a Channel.
2929+
"buffered" is used when the channel was closed but there is
2930+
still data that can be obtained with |ch_read()|.
29272931

29282932
*copy()*
29292933
copy({expr}) Make a copy of {expr}. For Numbers and Strings this isn't
@@ -6314,6 +6318,7 @@ setqflist({list} [, {action}]) *setqflist()*
63146318
Note that the list is not exactly the same as what
63156319
|getqflist()| returns.
63166320

6321+
*E927*
63176322
If {action} is set to 'a', then the items from {list} are
63186323
added to the existing quickfix list. If there is no existing
63196324
list, then a new list is created. If {action} is set to 'r',
@@ -7739,6 +7744,7 @@ tag_any_white Compiled with support for any white characters in tags
77397744
tcl Compiled with Tcl interface.
77407745
terminfo Compiled with terminfo instead of termcap.
77417746
termresponse Compiled with support for |t_RV| and |v:termresponse|.
7747+
termtruecolor Compiled with true color in terminal support.
77427748
textobjects Compiled with support for |text-objects|.
77437749
tgetent Compiled with tgetent support, able to use a termcap
77447750
or terminfo file.

runtime/doc/filetype.txt

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim version 7.4. Last change: 2015 Dec 06
1+
*filetype.txt* For Vim version 7.4. Last change: 2016 Apr 30
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -586,6 +586,41 @@ folding style instead. For example: >
586586
autocmd FileType man setlocal foldmethod=indent foldenable
587587
588588
589+
MANPAGER *manpager.vim*
590+
591+
The :Man command allows you to turn Vim into a manpager (that syntax highlights
592+
manpages and follows linked manpages on hitting CTRL-]).
593+
594+
Works on:
595+
596+
- Linux
597+
- Mac OS
598+
- FreeBSD
599+
- Cygwin
600+
- Win 10 under Bash
601+
602+
Untested:
603+
604+
- Amiga OS
605+
- BeOS
606+
- OS/2
607+
608+
For bash,zsh,ksh or dash by adding to the config file (.bashrc,.zshrc, ...)
609+
610+
export MANPAGER="env MAN_PN=1 vim -M +MANPAGER -"
611+
612+
For (t)csh by adding to the config file
613+
614+
setenv MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
615+
616+
For fish by adding to the config file
617+
618+
set -x MANPAGER "env MAN_PN=1 vim -M +MANPAGER -"
619+
620+
If man sets the $MAN_PN environment variable, like man-db, the most common
621+
implementation on Linux and Mac OS, then the "env MAN_PN=1 " part above is
622+
superfluous.
623+
589624
PDF *ft-pdf-plugin*
590625

591626
Two maps, <C-]> and <C-T>, are provided to simulate a tag stack for navigating

runtime/doc/pattern.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*pattern.txt* For Vim version 7.4. Last change: 2016 Apr 03
1+
*pattern.txt* For Vim version 7.4. Last change: 2016 Apr 26
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1079,16 +1079,16 @@ x A single character, with no special meaning, matches itself
10791079
belonging to that character class. The following character classes
10801080
are supported:
10811081
Name Contents ~
1082-
*[:alnum:]* [:alnum:] letters and digits
1083-
*[:alpha:]* [:alpha:] letters
1082+
*[:alnum:]* [:alnum:] ASCII letters and digits
1083+
*[:alpha:]* [:alpha:] ASCII letters
10841084
*[:blank:]* [:blank:] space and tab characters
10851085
*[:cntrl:]* [:cntrl:] control characters
10861086
*[:digit:]* [:digit:] decimal digits
10871087
*[:graph:]* [:graph:] printable characters excluding space
10881088
*[:lower:]* [:lower:] lowercase letters (all letters when
10891089
'ignorecase' is used)
10901090
*[:print:]* [:print:] printable characters including space
1091-
*[:punct:]* [:punct:] punctuation characters
1091+
*[:punct:]* [:punct:] ASCII punctuation characters
10921092
*[:space:]* [:space:] whitespace characters
10931093
*[:upper:]* [:upper:] uppercase letters (all letters when
10941094
'ignorecase' is used)
@@ -1105,7 +1105,8 @@ x A single character, with no special meaning, matches itself
11051105
These items only work for 8-bit characters, except [:lower:] and
11061106
[:upper:] also work for multi-byte characters when using the new
11071107
regexp engine. See |two-engines|. In the future these items may
1108-
work for multi-byte characters.
1108+
work for multi-byte characters. For now, to get all "alpha"
1109+
characters you can use: [[:lower:][:upper:]].
11091110
*/[[=* *[==]*
11101111
- An equivalence class. This means that characters are matched that
11111112
have almost the same meaning, e.g., when ignoring accents. This

runtime/doc/quickref.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickref.txt* For Vim version 7.4. Last change: 2016 Mar 30
1+
*quickref.txt* For Vim version 7.4. Last change: 2016 Apr 29
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -915,6 +915,7 @@ Short explanation of each option: *option-list*
915915
'term' name of the terminal
916916
'termbidi' 'tbidi' terminal takes care of bi-directionality
917917
'termencoding' 'tenc' character encoding used by the terminal
918+
'termguicolors' 'tgc' use GUI colors for the terminal
918919
'terse' shorten some messages
919920
'textauto' 'ta' obsolete, use 'fileformats'
920921
'textmode' 'tx' obsolete, use 'fileformat'

runtime/doc/starting.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 7.4. Last change: 2016 Apr 05
1+
*starting.txt* For Vim version 7.4. Last change: 2016 Apr 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -249,7 +249,8 @@ a slash. Thus "-R" means recovery and "-/R" readonly.
249249
-Z Restricted mode. All commands that make use of an external
250250
shell are disabled. This includes suspending with CTRL-Z,
251251
":sh", filtering, the system() function, backtick expansion,
252-
delete(), rename(), mkdir(), writefile(), libcall(), etc.
252+
delete(), rename(), mkdir(), writefile(), libcall(),
253+
job_start(), etc.
253254
{not in Vi}
254255

255256
*-g*

runtime/doc/tags

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -911,6 +911,8 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
911911
't_%1' term.txt /*'t_%1'*
912912
't_%i' term.txt /*'t_%i'*
913913
't_&8' term.txt /*'t_&8'*
914+
't_8b' term.txt /*'t_8b'*
915+
't_8f' term.txt /*'t_8f'*
914916
't_@7' term.txt /*'t_@7'*
915917
't_AB' term.txt /*'t_AB'*
916918
't_AF' term.txt /*'t_AF'*
@@ -1046,11 +1048,13 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
10461048
'term' options.txt /*'term'*
10471049
'termbidi' options.txt /*'termbidi'*
10481050
'termencoding' options.txt /*'termencoding'*
1051+
'termguicolors' options.txt /*'termguicolors'*
10491052
'terse' options.txt /*'terse'*
10501053
'textauto' options.txt /*'textauto'*
10511054
'textmode' options.txt /*'textmode'*
10521055
'textwidth' options.txt /*'textwidth'*
10531056
'tf' options.txt /*'tf'*
1057+
'tgc' options.txt /*'tgc'*
10541058
'tgst' options.txt /*'tgst'*
10551059
'thesaurus' options.txt /*'thesaurus'*
10561060
'tildeop' options.txt /*'tildeop'*
@@ -1286,6 +1290,7 @@ $VIM_POSIX vi_diff.txt /*$VIM_POSIX*
12861290
+tag_old_static various.txt /*+tag_old_static*
12871291
+tcl various.txt /*+tcl*
12881292
+tcl/dyn various.txt /*+tcl\/dyn*
1293+
+termguicolors various.txt /*+termguicolors*
12891294
+terminfo various.txt /*+terminfo*
12901295
+termresponse various.txt /*+termresponse*
12911296
+textobjects various.txt /*+textobjects*
@@ -4443,6 +4448,8 @@ E923 eval.txt /*E923*
44434448
E924 quickfix.txt /*E924*
44444449
E925 quickfix.txt /*E925*
44454450
E926 quickfix.txt /*E926*
4451+
E927 eval.txt /*E927*
4452+
E928 eval.txt /*E928*
44464453
E93 windows.txt /*E93*
44474454
E94 windows.txt /*E94*
44484455
E95 message.txt /*E95*
@@ -6257,6 +6264,7 @@ g:netrw_special_syntax pi_netrw.txt /*g:netrw_special_syntax*
62576264
g:netrw_ssh_browse_reject pi_netrw.txt /*g:netrw_ssh_browse_reject*
62586265
g:netrw_ssh_cmd pi_netrw.txt /*g:netrw_ssh_cmd*
62596266
g:netrw_sshport pi_netrw.txt /*g:netrw_sshport*
6267+
g:netrw_suppress_gx_mesg pi_netrw.txt /*g:netrw_suppress_gx_mesg*
62606268
g:netrw_timefmt pi_netrw.txt /*g:netrw_timefmt*
62616269
g:netrw_tmpfile_escape pi_netrw.txt /*g:netrw_tmpfile_escape*
62626270
g:netrw_uid pi_netrw.txt /*g:netrw_uid*
@@ -7054,6 +7062,7 @@ maillist intro.txt /*maillist*
70547062
maillist-archive intro.txt /*maillist-archive*
70557063
make.vim syntax.txt /*make.vim*
70567064
man.vim filetype.txt /*man.vim*
7065+
manpager.vim filetype.txt /*manpager.vim*
70577066
manual-copyright usr_01.txt /*manual-copyright*
70587067
map() eval.txt /*map()*
70597068
map-<SID> map.txt /*map-<SID>*
@@ -7867,6 +7876,7 @@ r change.txt /*r*
78677876
range() eval.txt /*range()*
78687877
raw-terminal-mode term.txt /*raw-terminal-mode*
78697878
rcp pi_netrw.txt /*rcp*
7879+
read-in-close-cb channel.txt /*read-in-close-cb*
78707880
read-messages insert.txt /*read-messages*
78717881
read-only-share editing.txt /*read-only-share*
78727882
read-stdin version5.txt /*read-stdin*
@@ -8332,6 +8342,8 @@ t_#4 term.txt /*t_#4*
83328342
t_%1 term.txt /*t_%1*
83338343
t_%i term.txt /*t_%i*
83348344
t_&8 term.txt /*t_&8*
8345+
t_8b term.txt /*t_8b*
8346+
t_8f term.txt /*t_8f*
83358347
t_@7 term.txt /*t_@7*
83368348
t_AB term.txt /*t_AB*
83378349
t_AF term.txt /*t_AF*
@@ -9186,6 +9198,7 @@ xterm-save-screen tips.txt /*xterm-save-screen*
91869198
xterm-screens tips.txt /*xterm-screens*
91879199
xterm-scroll-region term.txt /*xterm-scroll-region*
91889200
xterm-shifted-keys term.txt /*xterm-shifted-keys*
9201+
xterm-true-color term.txt /*xterm-true-color*
91899202
y change.txt /*y*
91909203
yaml.vim syntax.txt /*yaml.vim*
91919204
yank change.txt /*yank*

0 commit comments

Comments
 (0)