Skip to content

Commit 2fdcfad

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents a5e0355 + ae6f865 commit 2fdcfad

50 files changed

Lines changed: 806 additions & 340 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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,7 @@ RT_SCRIPTS = \
666666
runtime/autoload/xml/*.vim \
667667
runtime/colors/*.vim \
668668
runtime/colors/README.txt \
669+
runtime/colors/tools/*.vim \
669670
runtime/compiler/*.vim \
670671
runtime/compiler/README.txt \
671672
runtime/indent/*.vim \

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/colors/README.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Search for "highlight_init".
6464
If you think you have a color scheme that is good enough to be used by others,
6565
please check the following items:
6666

67-
- Source the check_colors.vim script to check for common mistakes.
67+
- Source the tools/check_colors.vim script to check for common mistakes.
6868
- Does it work in a color terminal as well as in the GUI?
6969
- Is "g:colors_name" set to a meaningful value? In case of doubt you can do
7070
it this way:

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: 34 additions & 3 deletions
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 19
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
@@ -3336,8 +3338,8 @@ count({comp}, {expr} [, {ic} [, {start}]]) *count()*
33363338
When {ic} is given and it's |TRUE| then case is ignored.
33373339

33383340
When {comp} is a string then the number of not overlapping
3339-
occurrences of {expr} is returned.
3340-
3341+
occurrences of {expr} is returned. Zero is returned when
3342+
{expr} is an empty string.
33413343

33423344
*cscope_connection()*
33433345
cscope_connection([{num} , {dbpath} [, {prepend}]])
@@ -4672,6 +4674,8 @@ getqflist([{what}]) *getqflist()*
46724674
If the optional {what} dictionary argument is supplied, then
46734675
returns only the items listed in {what} as a dictionary. The
46744676
following string items are supported in {what}:
4677+
changedtick get the total number of changes made
4678+
to the list
46754679
context get the context stored with |setqflist()|
46764680
efm errorformat to use when parsing "lines". If
46774681
not present, then the 'errorformat' option
@@ -4705,6 +4709,8 @@ getqflist([{what}]) *getqflist()*
47054709
"items" with the list of entries.
47064710

47074711
The returned dictionary contains the following entries:
4712+
changedtick total number of changes made to the
4713+
list |quickfix-changedtick|
47084714
context context information stored with |setqflist()|.
47094715
If not present, set to "".
47104716
id quickfix list ID |quickfix-ID|. If not
@@ -6114,6 +6120,31 @@ nr2char({expr} [, {utf8}]) *nr2char()*
61146120
characters. nr2char(0) is a real NUL and terminates the
61156121
string, thus results in an empty string.
61166122

6123+
option_restore({list}) *option_restore()*
6124+
Restore options previously saved by option_save().
6125+
When buffer-local options have been saved, this function must
6126+
be called when the same buffer is the current buffer.
6127+
When window-local options have been saved, this function must
6128+
be called when the same window is the current window.
6129+
When in the wrong buffer and/or window an error is given and
6130+
the local options won't be restored.
6131+
NOT IMPLEMENTED YET!
6132+
6133+
option_save({list}) *option_save()*
6134+
Saves the options named in {list}. The returned value can be
6135+
passed to option_restore(). Example: >
6136+
let s:saved_options = option_save([
6137+
\ 'ignorecase',
6138+
\ 'iskeyword',
6139+
\ ])
6140+
au <buffer> BufLeave *
6141+
\ call option_restore(s:saved_options)
6142+
< The advantage over using `:let` is that global and local
6143+
values are handled and the script ID is restored, so that
6144+
`:verbose set` will show where the option was originally set,
6145+
not where it was restored.
6146+
NOT IMPLEMENTED YET!
6147+
61176148
or({expr}, {expr}) *or()*
61186149
Bitwise OR on the two arguments. The arguments are converted
61196150
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: 13 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
@@ -64,6 +64,14 @@ When a window with a location list is split, the new window gets a copy of the
6464
location list. When there are no longer any references to a location list,
6565
the location list is destroyed.
6666

67+
*quickfix-changedtick*
68+
Every quickfix and location list has a read-only changedtick variable that
69+
tracks the total number of changes made to the list. Every time the quickfix
70+
list is modified, this count is incremented. This can be used to perform an
71+
action only when the list has changed. The getqflist() and getloclist()
72+
functions can be used to query the current value of changedtick. You cannot
73+
change the changedtick variable.
74+
6775
The following quickfix commands can be used. The location list commands are
6876
similar to the quickfix commands, replacing the 'c' prefix in the quickfix
6977
command with 'l'.
@@ -363,7 +371,7 @@ Any Vim type can be associated as a context with a quickfix or location list.
363371
The |setqflist()| and the |setloclist()| functions can be used to associate a
364372
context with a quickfix and a location list respectively. The |getqflist()|
365373
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
374+
quickfix and a location list respectively. This is useful for a Vim plugin
367375
dealing with multiple quickfix/location lists.
368376
Examples: >
369377
@@ -376,13 +384,13 @@ Examples: >
376384
echo getloclist(2, {'id' : qfid, 'context' : 1})
377385
<
378386
*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: >
387+
You can parse a list of lines using 'errorformat' without creating or
388+
modifying a quickfix list using the |getqflist()| function. Examples: >
381389
echo getqflist({'lines' : ["F1:10:Line10", "F2:20:Line20"]})
382390
echo getqflist({'lines' : systemlist('grep -Hn quickfix *')})
383391
This returns a dictionary where the 'items' key contains the list of quickfix
384392
entries parsed from lines. The following shows how to use a custom
385-
'errorformat' to parse the lines without modifying the 'erroformat' option: >
393+
'errorformat' to parse the lines without modifying the 'errorformat' option: >
386394
echo getqflist({'efm' : '%f#%l#%m', 'lines' : ['F1#10#Line']})
387395
<
388396

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 ~

0 commit comments

Comments
 (0)