Skip to content

Commit f0b03c4

Browse files
committed
Update runtime files
1 parent 8ee2d36 commit f0b03c4

21 files changed

Lines changed: 287 additions & 195 deletions

File tree

runtime/autoload/dist/ft.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim functions for file type detection
22
"
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2017 Nov 11
4+
" Last Change: 2017 Dec 05
55

66
" These functions are moved here from runtime/filetype.vim to make startup
77
" faster.
@@ -618,7 +618,11 @@ func dist#ft#FTperl()
618618
setf perl
619619
return 1
620620
endif
621-
if search('^use\s\s*\k', 'nc', 30)
621+
let save_cursor = getpos('.')
622+
call cursor(1,1)
623+
let has_use = search('^use\s\s*\k', 'c', 30)
624+
call setpos('.', save_cursor)
625+
if has_use
622626
setf perl
623627
return 1
624628
endif

runtime/doc/autocmd.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*autocmd.txt* For Vim version 8.0. Last change: 2017 Nov 05
1+
*autocmd.txt* For Vim version 8.0. Last change: 2017 Dec 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -957,7 +957,7 @@ TextChangedI After a change was made to the text in the
957957
current buffer in Insert mode.
958958
Not triggered when the popup menu is visible.
959959
Otherwise the same as TextChanged.
960-
|TextYankPost|
960+
*TextYankPost*
961961
TextYankPost After text has been yanked or deleted in the
962962
current buffer. The following values of
963963
|v:event| can be used to determine the operation
@@ -976,7 +976,6 @@ TextYankPost After text has been yanked or deleted in the
976976
called recursively.
977977
It is not allowed to change the buffer text,
978978
see |textlock|.
979-
980979
*User*
981980
User Never executed automatically. To be used for
982981
autocommands that are only executed with

runtime/doc/eval.txt

Lines changed: 28 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 Dec 09
1+
*eval.txt* For Vim version 8.0. Last change: 2017 Dec 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2276,6 +2276,8 @@ mode([expr]) String current editing mode
22762276
mzeval({expr}) any evaluate |MzScheme| expression
22772277
nextnonblank({lnum}) Number line nr of non-blank line >= {lnum}
22782278
nr2char({expr} [, {utf8}]) String single char with ASCII/UTF8 value {expr}
2279+
option_restore({list}) none restore options saved by option_save()
2280+
option_save({list}) List save options values
22792281
or({expr}, {expr}) Number bitwise OR
22802282
pathshorten({expr}) String shorten directory names in a path
22812283
perleval({expr}) any evaluate |Perl| expression
@@ -6114,6 +6116,31 @@ nr2char({expr} [, {utf8}]) *nr2char()*
61146116
characters. nr2char(0) is a real NUL and terminates the
61156117
string, thus results in an empty string.
61166118

6119+
option_restore({list}) *option_restore()*
6120+
Restore options previously saved by option_save().
6121+
When buffer-local options have been saved, this function must
6122+
be called when the same buffer is the current buffer.
6123+
When window-local options have been saved, this function must
6124+
be called when the same window is the current window.
6125+
When in the wrong buffer and/or window an error is given and
6126+
the local options won't be restored.
6127+
NOT IMPLEMENTED YET!
6128+
6129+
option_save({list}) *option_save()*
6130+
Saves the options named in {list}. The returned value can be
6131+
passed to option_restore(). Example: >
6132+
let s:saved_options = option_save([
6133+
\ 'ignorecase',
6134+
\ 'iskeyword',
6135+
\ ])
6136+
au <buffer> BufLeave *
6137+
\ call option_restore(s:saved_options)
6138+
< The advantage over using `:let` is that global and local
6139+
values are handled and the script ID is restored, so that
6140+
`:verbose set` will show where the option was originally set,
6141+
not where it was restored.
6142+
NOT IMPLEMENTED YET!
6143+
61176144
or({expr}, {expr}) *or()*
61186145
Bitwise OR on the two arguments. The arguments are converted
61196146
to a number. A List, Dict or Float argument causes an error.

runtime/doc/filetype.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*filetype.txt* For Vim version 8.0. Last change: 2017 Oct 10
1+
*filetype.txt* For Vim version 8.0. Last change: 2017 Dec 05
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -706,4 +706,23 @@ You can change the default by defining the variable g:tex_flavor to the format
706706
Currently no other formats are recognized.
707707

708708

709+
VIM *ft-vim-plugin*
710+
711+
The Vim filetype plugin defines mappings to move to the start and end of
712+
functions with [[ and ]]. Move around comments with ]" and [".
713+
714+
The mappings can be disabled with: >
715+
let g:no_vim_maps = 1
716+
717+
718+
ZIMBU *ft-zimbu-plugin*
719+
720+
The Zimbu filetype plugin defines mappings to move to the start and end of
721+
functions with [[ and ]].
722+
723+
The mappings can be disabled with: >
724+
let g:no_zimbu_maps = 1
725+
<
726+
727+
709728
vim:tw=78:ts=8:ft=help:norl:

runtime/doc/options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*options.txt* For Vim version 8.0. Last change: 2017 Nov 26
1+
*options.txt* For Vim version 8.0. Last change: 2017 Dec 01
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar

runtime/doc/quickfix.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*quickfix.txt* For Vim version 8.0. Last change: 2017 Sep 13
1+
*quickfix.txt* For Vim version 8.0. Last change: 2017 Dec 13
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -363,7 +363,7 @@ Any Vim type can be associated as a context with a quickfix or location list.
363363
The |setqflist()| and the |setloclist()| functions can be used to associate a
364364
context with a quickfix and a location list respectively. The |getqflist()|
365365
and the |getloclist()| functions can be used to retrieve the context of a
366-
quickifx and a location list respectively. This is useful for a Vim plugin
366+
quickfix and a location list respectively. This is useful for a Vim plugin
367367
dealing with multiple quickfix/location lists.
368368
Examples: >
369369
@@ -376,13 +376,13 @@ Examples: >
376376
echo getloclist(2, {'id' : qfid, 'context' : 1})
377377
<
378378
*quickfix-parse*
379-
You can parse a list of lines using 'erroformat' without creating or modifying
380-
a quickfix list using the |getqflist()| function. Examples: >
379+
You can parse a list of lines using 'errorformat' without creating or
380+
modifying a quickfix list using the |getqflist()| function. Examples: >
381381
echo getqflist({'lines' : ["F1:10:Line10", "F2:20:Line20"]})
382382
echo getqflist({'lines' : systemlist('grep -Hn quickfix *')})
383383
This returns a dictionary where the 'items' key contains the list of quickfix
384384
entries parsed from lines. The following shows how to use a custom
385-
'errorformat' to parse the lines without modifying the 'erroformat' option: >
385+
'errorformat' to parse the lines without modifying the 'errorformat' option: >
386386
echo getqflist({'efm' : '%f#%l#%m', 'lines' : ['F1#10#Line']})
387387
<
388388

runtime/doc/repeat.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 8.0. Last change: 2017 Jun 10
1+
*repeat.txt* For Vim version 8.0. Last change: 2017 Dec 17
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -242,6 +242,10 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
242242
If the directory pack/*/opt/{name}/after exists it is
243243
added at the end of 'runtimepath'.
244244

245+
If loading packages from "pack/*/start" was skipped,
246+
then this directory is searched first:
247+
pack/*/start/{name} ~
248+
245249
Note that {name} is the directory name, not the name
246250
of the .vim file. All the files matching the pattern
247251
pack/*/opt/{name}/plugin/**/*.vim ~

runtime/doc/tags

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4820,6 +4820,7 @@ TermResponse autocmd.txt /*TermResponse*
48204820
Terminal-mode terminal.txt /*Terminal-mode*
48214821
TextChanged autocmd.txt /*TextChanged*
48224822
TextChangedI autocmd.txt /*TextChangedI*
4823+
TextYankPost autocmd.txt /*TextYankPost*
48234824
Transact-SQL ft_sql.txt /*Transact-SQL*
48244825
U undo.txt /*U*
48254826
UTF-8 mbyte.txt /*UTF-8*
@@ -5869,6 +5870,7 @@ eval() eval.txt /*eval()*
58695870
eval-examples eval.txt /*eval-examples*
58705871
eval-sandbox eval.txt /*eval-sandbox*
58715872
eval.txt eval.txt /*eval.txt*
5873+
event-variable eval.txt /*event-variable*
58725874
eventhandler() eval.txt /*eventhandler()*
58735875
eview starting.txt /*eview*
58745876
evim starting.txt /*evim*
@@ -6230,13 +6232,15 @@ ft-vb-syntax syntax.txt /*ft-vb-syntax*
62306232
ft-verilog-indent indent.txt /*ft-verilog-indent*
62316233
ft-vhdl-indent indent.txt /*ft-vhdl-indent*
62326234
ft-vim-indent indent.txt /*ft-vim-indent*
6235+
ft-vim-plugin filetype.txt /*ft-vim-plugin*
62336236
ft-vim-syntax syntax.txt /*ft-vim-syntax*
62346237
ft-xf86conf-syntax syntax.txt /*ft-xf86conf-syntax*
62356238
ft-xhtml-omni insert.txt /*ft-xhtml-omni*
62366239
ft-xml-omni insert.txt /*ft-xml-omni*
62376240
ft-xml-syntax syntax.txt /*ft-xml-syntax*
62386241
ft-xpm-syntax syntax.txt /*ft-xpm-syntax*
62396242
ft-yaml-syntax syntax.txt /*ft-yaml-syntax*
6243+
ft-zimbu-plugin filetype.txt /*ft-zimbu-plugin*
62406244
ft-zsh-syntax syntax.txt /*ft-zsh-syntax*
62416245
ft_ada.txt ft_ada.txt /*ft_ada.txt*
62426246
ft_rust.txt ft_rust.txt /*ft_rust.txt*
@@ -7826,6 +7830,8 @@ option-backslash options.txt /*option-backslash*
78267830
option-list quickref.txt /*option-list*
78277831
option-summary options.txt /*option-summary*
78287832
option-window options.txt /*option-window*
7833+
option_restore() eval.txt /*option_restore()*
7834+
option_save() eval.txt /*option_save()*
78297835
options options.txt /*options*
78307836
options-changed version5.txt /*options-changed*
78317837
options-in-terminal terminal.txt /*options-in-terminal*
@@ -8058,14 +8064,19 @@ quake.vim syntax.txt /*quake.vim*
80588064
quickfix quickfix.txt /*quickfix*
80598065
quickfix-6 version6.txt /*quickfix-6*
80608066
quickfix-ID quickfix.txt /*quickfix-ID*
8067+
quickfix-context quickfix.txt /*quickfix-context*
80618068
quickfix-directory-stack quickfix.txt /*quickfix-directory-stack*
80628069
quickfix-error-lists quickfix.txt /*quickfix-error-lists*
80638070
quickfix-functions usr_41.txt /*quickfix-functions*
80648071
quickfix-gcc quickfix.txt /*quickfix-gcc*
80658072
quickfix-manx quickfix.txt /*quickfix-manx*
8073+
quickfix-parse quickfix.txt /*quickfix-parse*
80668074
quickfix-perl quickfix.txt /*quickfix-perl*
8075+
quickfix-size quickfix.txt /*quickfix-size*
8076+
quickfix-title quickfix.txt /*quickfix-title*
80678077
quickfix-valid quickfix.txt /*quickfix-valid*
80688078
quickfix-window quickfix.txt /*quickfix-window*
8079+
quickfix-window-ID quickfix.txt /*quickfix-window-ID*
80698080
quickfix.txt quickfix.txt /*quickfix.txt*
80708081
quickref quickref.txt /*quickref*
80718082
quickref.txt quickref.txt /*quickref.txt*
@@ -9104,6 +9115,7 @@ v:ctype eval.txt /*v:ctype*
91049115
v:dying eval.txt /*v:dying*
91059116
v:errmsg eval.txt /*v:errmsg*
91069117
v:errors eval.txt /*v:errors*
9118+
v:event eval.txt /*v:event*
91079119
v:exception eval.txt /*v:exception*
91089120
v:false eval.txt /*v:false*
91099121
v:fcs_choice eval.txt /*v:fcs_choice*
@@ -9471,6 +9483,7 @@ win_getid() eval.txt /*win_getid()*
94719483
win_gotoid() eval.txt /*win_gotoid()*
94729484
win_id2tabwin() eval.txt /*win_id2tabwin()*
94739485
win_id2win() eval.txt /*win_id2win()*
9486+
win_screenpos() eval.txt /*win_screenpos()*
94749487
winbufnr() eval.txt /*winbufnr()*
94759488
wincol() eval.txt /*wincol()*
94769489
window windows.txt /*window*

runtime/doc/terminal.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -370,12 +370,14 @@ Starting ~
370370
Load the plugin with this command: >
371371
packadd termdebug
372372
< *:Termdebug*
373-
To start debugging use `:TermDebug` folowed by the command name, for example: >
373+
To start debugging use `:Termdebug` followed by the command name, for example: >
374374
:Termdebug vim
375375
376376
This opens two windows:
377+
377378
gdb window A terminal window in which "gdb vim" is executed. Here you
378379
can directly interact with gdb. The buffer name is "!gdb".
380+
379381
program window A terminal window for the executed program. When "run" is
380382
used in gdb the program I/O will happen in this window, so
381383
that it does not interfere with controlling gdb. The buffer
@@ -476,14 +478,15 @@ In the window showing the source code these commands can used to control gdb:
476478
:Continue execute the gdb "continue" command
477479
:Stop interrupt the program
478480

479-
The plugin adds a window toolbar with these entries:
481+
If 'mouse' is set the plugin adds a window toolbar with these entries:
480482
Step :Step
481483
Next :Over
482484
Finish :Finish
483485
Cont :Continue
484486
Stop :Stop
485487
Eval :Evaluate
486-
This way you can use the mouse to perform the most common commands.
488+
This way you can use the mouse to perform the most common commands. You need
489+
to have the 'mouse' option set to enable mouse clicks.
487490

488491

489492
Inspecting variables ~

0 commit comments

Comments
 (0)