Skip to content

Commit e23c64e

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 2b4671c + e1c8c7a commit e23c64e

17 files changed

+242
-113
lines changed

runtime/doc/change.txt

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

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -872,6 +872,7 @@ The numbering of "\1", "\2" etc. is done based on which "\(" comes first in
872872
the pattern (going left to right). When a parentheses group matches several
873873
times, the last one will be used for "\1", "\2", etc. Example: >
874874
:s/\(\(a[a-d] \)*\)/\2/ modifies "aa ab x" to "ab x"
875+
The "\2" is for "\(a[a-d] \)". At first it matches "aa ", secondly "ab ".
875876

876877
When using parentheses in combination with '|', like in \([ab]\)\|\([cd]\),
877878
either the first or second pattern in parentheses did not match, so either

runtime/doc/filetype.txt

Lines changed: 12 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: 2016 Jun 20
1+
*filetype.txt* For Vim version 7.4. Last change: 2016 Sep 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -644,6 +644,17 @@ These maps can be disabled with >
644644
:let g:no_pdf_maps = 1
645645
<
646646

647+
PYTHON *ft-python-plugin* *PEP8*
648+
649+
By default the following options are set, in accordance with PEP8: >
650+
651+
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
652+
653+
To disable this behaviour, set the following variable in your vimrc: >
654+
655+
let g:python_recommended_style = 0
656+
657+
647658
RPM SPEC *ft-spec-plugin*
648659

649660
Since the text for this plugin is rather long it has been put in a separate

runtime/doc/repeat.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 7.4. Last change: 2016 Jul 21
1+
*repeat.txt* For Vim version 7.4. Last change: 2016 Sep 11
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -158,7 +158,7 @@ q Stops recording. (Implementation note: The 'q' that
158158
:[addr]@: Repeat last command-line. First set cursor at line
159159
[addr] (default is current line). {not in Vi}
160160

161-
*:@@*
161+
:[addr]@ *:@@*
162162
:[addr]@@ Repeat the previous :@{0-9a-z"}. First set cursor at
163163
line [addr] (default is current line). {Vi: only in
164164
some versions}

runtime/doc/starting.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*starting.txt* For Vim version 7.4. Last change: 2016 Sep 03
1+
*starting.txt* For Vim version 7.4. Last change: 2016 Sep 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1022,17 +1022,20 @@ patch 7.4.2111 to be exact).
10221022

10231023
This should work well for new Vim users. If you create your own .vimrc, it is
10241024
recommended to add this line somewhere near the top: >
1025+
unlet! skip_defaults_vim
10251026
source $VIMRUNTIME/defaults.vim
10261027
Then Vim works like before you had a .vimrc. Copying $VIMRUNTIME/vimrc_example
10271028
is way to do this. Alternatively, you can copy defaults.vim to your .vimrc
1028-
and modify it.
1029+
and modify it (but then you won't get updates when it changes).
10291030

10301031
If you don't like some of the defaults, you can still source defaults.vim and
10311032
revert individual settings. See the defaults.vim file for hints on how to
10321033
revert each item.
1033-
1034+
*skip_defaults_vim*
10341035
If you use a system-wide vimrc and don't want defaults.vim to change settings,
1035-
set the "skip_defaults_vim" variable.
1036+
set the "skip_defaults_vim" variable. If this was set and you want to load
1037+
defaults.vim from your .vimrc, first unlet skip_defaults_vim, as in the
1038+
example above.
10361039

10371040

10381041
Avoiding trojan horses ~

runtime/doc/syntax.txt

Lines changed: 78 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*syntax.txt* For Vim version 7.4. Last change: 2016 Aug 16
1+
*syntax.txt* For Vim version 7.4. Last change: 2016 Sep 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2669,68 +2669,104 @@ your .vimrc: *g:filetype_r*
26692669
26702670
RUBY *ruby.vim* *ft-ruby-syntax*
26712671

2672-
There are a number of options to the Ruby syntax highlighting.
2672+
Ruby: Operator highlighting |ruby_operators|
2673+
Ruby: Whitespace errors |ruby_space_errors|
2674+
Ruby: Folding |ruby_fold| |ruby_foldable_groups|
2675+
Ruby: Reducing expensive operations |ruby_no_expensive| |ruby_minlines|
2676+
Ruby: Spellchecking strings |ruby_spellcheck_strings|
26732677

2674-
By default, the "end" keyword is colorized according to the opening statement
2675-
of the block it closes. While useful, this feature can be expensive; if you
2676-
experience slow redrawing (or you are on a terminal with poor color support)
2677-
you may want to turn it off by defining the "ruby_no_expensive" variable: >
2678+
*ruby_operators*
2679+
Ruby: Operator highlighting ~
26782680

2679-
:let ruby_no_expensive = 1
2681+
Operators can be highlighted by defining "ruby_operators": >
2682+
2683+
:let ruby_operators = 1
26802684
<
2681-
In this case the same color will be used for all control keywords.
2685+
*ruby_space_errors*
2686+
Ruby: Whitespace errors ~
26822687

2683-
If you do want this feature enabled, but notice highlighting errors while
2684-
scrolling backwards, which are fixed when redrawing with CTRL-L, try setting
2685-
the "ruby_minlines" variable to a value larger than 50: >
2688+
Whitespace errors can be highlighted by defining "ruby_space_errors": >
26862689
2687-
:let ruby_minlines = 100
2690+
:let ruby_space_errors = 1
26882691
<
2689-
Ideally, this value should be a number of lines large enough to embrace your
2690-
largest class or module.
2692+
This will highlight trailing whitespace and tabs preceded by a space character
2693+
as errors. This can be refined by defining "ruby_no_trail_space_error" and
2694+
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
2695+
spaces respectively.
2696+
2697+
*ruby_fold* *ruby_foldable_groups*
2698+
Ruby: Folding ~
26912699

2692-
Highlighting of special identifiers can be disabled by removing the
2693-
rubyIdentifier highlighting: >
2700+
Folding can be enabled by defining "ruby_fold": >
26942701
2695-
:hi link rubyIdentifier NONE
2702+
:let ruby_fold = 1
26962703
<
2697-
This will prevent highlighting of special identifiers like "ConstantName",
2698-
"$global_var", "@@class_var", "@instance_var", "| block_param |", and
2699-
":symbol".
2704+
This will set the value of 'foldmethod' to "syntax" locally to the current
2705+
buffer or window, which will enable syntax-based folding when editing Ruby
2706+
filetypes.
2707+
2708+
*ruby_foldable_groups*
2709+
Default folding is rather detailed, i.e., small syntax units like "if", "do",
2710+
"%w[]" may create corresponding fold levels.
27002711

2701-
Significant methods of Kernel, Module and Object are highlighted by default.
2702-
This can be disabled by defining "ruby_no_special_methods": >
2712+
You can set "ruby_foldable_groups" to restrict which groups are foldable: >
27032713
2704-
:let ruby_no_special_methods = 1
2714+
:let ruby_foldable_groups = 'if case %'
27052715
<
2706-
This will prevent highlighting of important methods such as "require", "attr",
2707-
"private", "raise" and "proc".
2716+
The value is a space-separated list of keywords:
2717+
2718+
keyword meaning ~
2719+
-------- ------------------------------------- ~
2720+
ALL Most block syntax (default)
2721+
NONE Nothing
2722+
if "if" or "unless" block
2723+
def "def" block
2724+
class "class" block
2725+
module "module" block
2726+
do "do" block
2727+
begin "begin" block
2728+
case "case" block
2729+
for "for", "while", "until" loops
2730+
{ Curly bracket block or hash literal
2731+
[ Array literal
2732+
% Literal with "%" notation, e.g.: %w(STRING), %!STRING!
2733+
/ Regexp
2734+
string String and shell command output (surrounded by ', ", `)
2735+
: Symbol
2736+
# Multiline comment
2737+
<< Here documents
2738+
__END__ Source code after "__END__" directive
2739+
2740+
*ruby_no_expensive*
2741+
Ruby: Reducing expensive operations ~
27082742

2709-
Ruby operators can be highlighted. This is enabled by defining
2710-
"ruby_operators": >
2743+
By default, the "end" keyword is colorized according to the opening statement
2744+
of the block it closes. While useful, this feature can be expensive; if you
2745+
experience slow redrawing (or you are on a terminal with poor color support)
2746+
you may want to turn it off by defining the "ruby_no_expensive" variable: >
27112747
2712-
:let ruby_operators = 1
2748+
:let ruby_no_expensive = 1
27132749
<
2714-
Whitespace errors can be highlighted by defining "ruby_space_errors": >
2750+
In this case the same color will be used for all control keywords.
27152751

2716-
:let ruby_space_errors = 1
2717-
<
2718-
This will highlight trailing whitespace and tabs preceded by a space character
2719-
as errors. This can be refined by defining "ruby_no_trail_space_error" and
2720-
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
2721-
spaces respectively.
2752+
*ruby_minlines*
27222753

2723-
Folding can be enabled by defining "ruby_fold": >
2754+
If you do want this feature enabled, but notice highlighting errors while
2755+
scrolling backwards, which are fixed when redrawing with CTRL-L, try setting
2756+
the "ruby_minlines" variable to a value larger than 50: >
27242757
2725-
:let ruby_fold = 1
2758+
:let ruby_minlines = 100
27262759
<
2727-
This will set the 'foldmethod' option to "syntax" and allow folding of
2728-
classes, modules, methods, code blocks, heredocs and comments.
2760+
Ideally, this value should be a number of lines large enough to embrace your
2761+
largest class or module.
2762+
2763+
*ruby_spellcheck_strings*
2764+
Ruby: Spellchecking strings ~
27292765

2730-
Folding of multiline comments can be disabled by defining
2731-
"ruby_no_comment_fold": >
2766+
Ruby syntax will perform spellchecking of strings if you define
2767+
"ruby_spellcheck_strings": >
27322768
2733-
:let ruby_no_comment_fold = 1
2769+
:let ruby_spellcheck_strings = 1
27342770
<
27352771

27362772
SCHEME *scheme.vim* *ft-scheme-syntax*

runtime/doc/tabpage.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*tabpage.txt* For Vim version 7.4. Last change: 2015 Jan 04
1+
*tabpage.txt* For Vim version 7.4. Last change: 2016 Sep 09
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -201,6 +201,12 @@ Other commands:
201201
:tabs List the tab pages and the windows they contain.
202202
Shows a ">" for the current window.
203203
Shows a "+" for modified buffers.
204+
For example:
205+
Tab page 1 ~
206+
+ tabpage.txt ~
207+
ex_docmd.c ~
208+
Tab page 2 ~
209+
> main.c ~
204210

205211

206212
REORDERING TAB PAGES:

runtime/doc/tags

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4668,6 +4668,7 @@ OptionSet autocmd.txt /*OptionSet*
46684668
OverTheSpot mbyte.txt /*OverTheSpot*
46694669
P change.txt /*P*
46704670
PATHEXT eval.txt /*PATHEXT*
4671+
PEP8 filetype.txt /*PEP8*
46714672
PHP_BracesAtCodeLevel indent.txt /*PHP_BracesAtCodeLevel*
46724673
PHP_autoformatcomment indent.txt /*PHP_autoformatcomment*
46734674
PHP_default_indenting indent.txt /*PHP_default_indenting*
@@ -6148,6 +6149,7 @@ ft-printcap-syntax syntax.txt /*ft-printcap-syntax*
61486149
ft-progress-syntax syntax.txt /*ft-progress-syntax*
61496150
ft-ptcap-syntax syntax.txt /*ft-ptcap-syntax*
61506151
ft-python-indent indent.txt /*ft-python-indent*
6152+
ft-python-plugin filetype.txt /*ft-python-plugin*
61516153
ft-python-syntax syntax.txt /*ft-python-syntax*
61526154
ft-quake-syntax syntax.txt /*ft-quake-syntax*
61536155
ft-r-indent indent.txt /*ft-r-indent*
@@ -8121,6 +8123,14 @@ ruby-set_option if_ruby.txt /*ruby-set_option*
81218123
ruby-vim if_ruby.txt /*ruby-vim*
81228124
ruby-window if_ruby.txt /*ruby-window*
81238125
ruby.vim syntax.txt /*ruby.vim*
8126+
ruby_fold syntax.txt /*ruby_fold*
8127+
ruby_foldable_groups syntax.txt /*ruby_foldable_groups*
8128+
ruby_foldable_groups syntax.txt /*ruby_foldable_groups*
8129+
ruby_minlines syntax.txt /*ruby_minlines*
8130+
ruby_no_expensive syntax.txt /*ruby_no_expensive*
8131+
ruby_operators syntax.txt /*ruby_operators*
8132+
ruby_space_errors syntax.txt /*ruby_space_errors*
8133+
ruby_spellcheck_strings syntax.txt /*ruby_spellcheck_strings*
81248134
russian russian.txt /*russian*
81258135
russian-intro russian.txt /*russian-intro*
81268136
russian-issues russian.txt /*russian-issues*
@@ -8255,6 +8265,7 @@ sin() eval.txt /*sin()*
82558265
single-repeat repeat.txt /*single-repeat*
82568266
sinh() eval.txt /*sinh()*
82578267
skeleton autocmd.txt /*skeleton*
8268+
skip_defaults_vim starting.txt /*skip_defaults_vim*
82588269
slice eval.txt /*slice*
82598270
slow-fast-terminal term.txt /*slow-fast-terminal*
82608271
slow-start starting.txt /*slow-start*

runtime/doc/todo.txt

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 7.4. Last change: 2016 Sep 08
1+
*todo.txt* For Vim version 7.4. Last change: 2016 Sep 10
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -34,20 +34,6 @@ not be repeated below, unless there is extra information.
3434
*known-bugs*
3535
-------------------- Known bugs and current work -----------------------
3636

37-
Invalid memory access in do_pending_operator. (Dominique, 2016 Sep 5)
38-
39-
Invalid memory access in msg_puts_printf (Dominique, 2016 Sep 6)
40-
41-
Crash after wiping a buffer. (Dominique, Sep 7)
42-
43-
With MS-Windows gvim:
44-
test_netbeans.vim fails. Nb_basic line 12 and 13.
45-
test86 fails partial fix
46-
test87 fails
47-
48-
Make ":filter" work with more commands.
49-
Search for: msg_putchar('\n')
50-
5137
+channel:
5238
- channel_wait() may return an error while there is still something to read.
5339
Perhaps try to read once?
@@ -71,8 +57,6 @@ Later
7157
With xterm could use -S{pty}.
7258

7359
Regexp problems:
74-
- The new engine does not do the example in change.txt correctly, where the
75-
meaning of \1 and \2 is explained. (Harm te Hennepe, #990)
7660
- Since 7.4.704 the old regex engine fails to match [[:print:]] in 0xf6.
7761
(Manuel Ortega, 2016 Apr 24)
7862
Test fails on Mac. Avoid using isalpha(), isalnum(), etc? Depends on
@@ -92,8 +76,6 @@ Regexp problems:
9276
2013 Dec 11)
9377
- Using \@> and \?. (Brett Stahlman, 2013 Dec 21) Remark from Marcin Szamotulski
9478
Remark from Brett 2014 Jan 6 and 7.
95-
- Difference in NFA and old engine. (Brett Stahlman, 2014 Nov 5)
96-
- Bug when using \>. (Ramel, 2014 Feb 2) (Aaron Bohannon, 2014 Feb 13)
9779
- NFA regexp doesn't handle \%<v correctly. (Ingo Karkat, 2014 May 12)
9880
- Does not work with NFA regexp engine:
9981
\%u, \%x, \%o, \%d followed by a composing character
@@ -117,9 +99,7 @@ Regexp problems:
11799
out the \& works. Seems any column check after \& fails.
118100
- The pattern "\1" with the old engine gives E65, with the new engine it
119101
matches the empty string. (Dominique Pelle, 2015 Oct 2, Nov 24)
120-
- Search for \\~ causes error E874.
121-
- Search for /\%d0\+ causes error E363 in a file with consecutive NUL
122-
characters. (Christian Brabandt, 2016 Jun 7)
102+
had_endbrace[] is set but not initialized or used.
123103

124104
json_encode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
125105
What if there is an invalid character?
@@ -133,8 +113,6 @@ Once .exe with updated installer is available: Add remark to download page
133113
about /S and /D options (Ken Takata, 2016 Apr 13)
134114
Or point to nightly builds: https://github.com/vim/vim-win32-installer/releases
135115

136-
Cursor positioned in the wrong place when editing src/testdir/test_viml.vim.
137-
138116
Javascript indent wrong after /* in single quoted string:
139117
var SRC = 'src/*.js';
140118
function log(tag) {
@@ -146,14 +124,9 @@ Add tests for using number larger than number of lines in buffer.
146124

147125
Invalid behavior with NULL list. (Nikolai Pavlov, #768)
148126

149-
For current Windows build .pdb file is missing. (Gabriele Fava, 2016 May 11)
150-
5)
151-
152127
min() and max() spawn lots of error messages if sorted list/dictionary
153128
contains invalid data (Nikolay Pavlov, 2016 Sep 4, #1039)
154129

155-
Patch to fix compiler warning with gtk3. (Kazunobu Kuriyama, 2016 Aug 24)
156-
157130
Problem with whitespace in errorformat. (Gerd Wachsmuth, 2016 May 15, #807)
158131

159132
Undo problem: "g-" doesn't go back, gets stuck. (Björn Linse, 2016 Jul 18)

0 commit comments

Comments
 (0)