mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7e1479b86c59
Updated runtime files, Japanese translations.
7e1479b86c
This commit is contained in:
parent
2648c3579a
commit
9f7e1cec05
@ -833,6 +833,7 @@ The numbering of "\1", "\2" etc. is done based on which "\(" comes first in
|
|||||||
the pattern (going left to right). When a parentheses group matches several
|
the pattern (going left to right). When a parentheses group matches several
|
||||||
times, the last one will be used for "\1", "\2", etc. Example: >
|
times, the last one will be used for "\1", "\2", etc. Example: >
|
||||||
:s/\(\(a[a-d] \)*\)/\2/ modifies "aa ab x" to "ab x"
|
:s/\(\(a[a-d] \)*\)/\2/ modifies "aa ab x" to "ab x"
|
||||||
|
The "\2" is for "\(a[a-d] \)". At first it matches "aa ", secondly "ab ".
|
||||||
|
|
||||||
When using parentheses in combination with '|', like in \([ab]\)\|\([cd]\),
|
When using parentheses in combination with '|', like in \([ab]\)\|\([cd]\),
|
||||||
either the first or second pattern in parentheses did not match, so either
|
either the first or second pattern in parentheses did not match, so either
|
||||||
|
@ -565,6 +565,17 @@ These maps can be disabled with >
|
|||||||
:let g:no_pdf_maps = 1
|
:let g:no_pdf_maps = 1
|
||||||
<
|
<
|
||||||
|
|
||||||
|
PYTHON *ft-python-plugin* *PEP8*
|
||||||
|
|
||||||
|
By default the following options are set, in accordance with PEP8: >
|
||||||
|
|
||||||
|
setlocal expandtab shiftwidth=4 softtabstop=4 tabstop=8
|
||||||
|
|
||||||
|
To disable this behaviour, set the following variable in your vimrc: >
|
||||||
|
|
||||||
|
let g:python_recommended_style = 0
|
||||||
|
|
||||||
|
|
||||||
RPM SPEC *ft-spec-plugin*
|
RPM SPEC *ft-spec-plugin*
|
||||||
|
|
||||||
Since the text for this plugin is rather long it has been put in a separate
|
Since the text for this plugin is rather long it has been put in a separate
|
||||||
|
@ -152,7 +152,7 @@ q Stops recording.
|
|||||||
:[addr]@: Repeat last command-line. First set cursor at line
|
:[addr]@: Repeat last command-line. First set cursor at line
|
||||||
[addr] (default is current line).
|
[addr] (default is current line).
|
||||||
|
|
||||||
*:@@*
|
:[addr]@ *:@@*
|
||||||
:[addr]@@ Repeat the previous :@{0-9a-z"}. First set cursor at
|
:[addr]@@ Repeat the previous :@{0-9a-z"}. First set cursor at
|
||||||
line [addr] (default is current line).
|
line [addr] (default is current line).
|
||||||
|
|
||||||
|
@ -2656,7 +2656,76 @@ your vimrc: *g:filetype_r*
|
|||||||
|
|
||||||
RUBY *ruby.vim* *ft-ruby-syntax*
|
RUBY *ruby.vim* *ft-ruby-syntax*
|
||||||
|
|
||||||
There are a number of options to the Ruby syntax highlighting.
|
Ruby: Operator highlighting |ruby_operators|
|
||||||
|
Ruby: Whitespace errors |ruby_space_errors|
|
||||||
|
Ruby: Folding |ruby_fold| |ruby_foldable_groups|
|
||||||
|
Ruby: Reducing expensive operations |ruby_no_expensive| |ruby_minlines|
|
||||||
|
Ruby: Spellchecking strings |ruby_spellcheck_strings|
|
||||||
|
|
||||||
|
*ruby_operators*
|
||||||
|
Ruby: Operator highlighting ~
|
||||||
|
|
||||||
|
Operators can be highlighted by defining "ruby_operators": >
|
||||||
|
|
||||||
|
:let ruby_operators = 1
|
||||||
|
<
|
||||||
|
*ruby_space_errors*
|
||||||
|
Ruby: Whitespace errors ~
|
||||||
|
|
||||||
|
Whitespace errors can be highlighted by defining "ruby_space_errors": >
|
||||||
|
|
||||||
|
:let ruby_space_errors = 1
|
||||||
|
<
|
||||||
|
This will highlight trailing whitespace and tabs preceded by a space character
|
||||||
|
as errors. This can be refined by defining "ruby_no_trail_space_error" and
|
||||||
|
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
|
||||||
|
spaces respectively.
|
||||||
|
|
||||||
|
*ruby_fold* *ruby_foldable_groups*
|
||||||
|
Ruby: Folding ~
|
||||||
|
|
||||||
|
Folding can be enabled by defining "ruby_fold": >
|
||||||
|
|
||||||
|
:let ruby_fold = 1
|
||||||
|
<
|
||||||
|
This will set the value of 'foldmethod' to "syntax" locally to the current
|
||||||
|
buffer or window, which will enable syntax-based folding when editing Ruby
|
||||||
|
filetypes.
|
||||||
|
|
||||||
|
*ruby_foldable_groups*
|
||||||
|
Default folding is rather detailed, i.e., small syntax units like "if", "do",
|
||||||
|
"%w[]" may create corresponding fold levels.
|
||||||
|
|
||||||
|
You can set "ruby_foldable_groups" to restrict which groups are foldable: >
|
||||||
|
|
||||||
|
:let ruby_foldable_groups = 'if case %'
|
||||||
|
<
|
||||||
|
The value is a space-separated list of keywords:
|
||||||
|
|
||||||
|
keyword meaning ~
|
||||||
|
-------- ------------------------------------- ~
|
||||||
|
ALL Most block syntax (default)
|
||||||
|
NONE Nothing
|
||||||
|
if "if" or "unless" block
|
||||||
|
def "def" block
|
||||||
|
class "class" block
|
||||||
|
module "module" block
|
||||||
|
do "do" block
|
||||||
|
begin "begin" block
|
||||||
|
case "case" block
|
||||||
|
for "for", "while", "until" loops
|
||||||
|
{ Curly bracket block or hash literal
|
||||||
|
[ Array literal
|
||||||
|
% Literal with "%" notation, e.g.: %w(STRING), %!STRING!
|
||||||
|
/ Regexp
|
||||||
|
string String and shell command output (surrounded by ', ", `)
|
||||||
|
: Symbol
|
||||||
|
# Multiline comment
|
||||||
|
<< Here documents
|
||||||
|
__END__ Source code after "__END__" directive
|
||||||
|
|
||||||
|
*ruby_no_expensive*
|
||||||
|
Ruby: Reducing expensive operations ~
|
||||||
|
|
||||||
By default, the "end" keyword is colorized according to the opening statement
|
By default, the "end" keyword is colorized according to the opening statement
|
||||||
of the block it closes. While useful, this feature can be expensive; if you
|
of the block it closes. While useful, this feature can be expensive; if you
|
||||||
@ -2667,6 +2736,8 @@ you may want to turn it off by defining the "ruby_no_expensive" variable: >
|
|||||||
<
|
<
|
||||||
In this case the same color will be used for all control keywords.
|
In this case the same color will be used for all control keywords.
|
||||||
|
|
||||||
|
*ruby_minlines*
|
||||||
|
|
||||||
If you do want this feature enabled, but notice highlighting errors while
|
If you do want this feature enabled, but notice highlighting errors while
|
||||||
scrolling backwards, which are fixed when redrawing with CTRL-L, try setting
|
scrolling backwards, which are fixed when redrawing with CTRL-L, try setting
|
||||||
the "ruby_minlines" variable to a value larger than 50: >
|
the "ruby_minlines" variable to a value larger than 50: >
|
||||||
@ -2676,48 +2747,13 @@ the "ruby_minlines" variable to a value larger than 50: >
|
|||||||
Ideally, this value should be a number of lines large enough to embrace your
|
Ideally, this value should be a number of lines large enough to embrace your
|
||||||
largest class or module.
|
largest class or module.
|
||||||
|
|
||||||
Highlighting of special identifiers can be disabled by removing the
|
*ruby_spellcheck_strings*
|
||||||
rubyIdentifier highlighting: >
|
Ruby: Spellchecking strings ~
|
||||||
|
|
||||||
:hi link rubyIdentifier NONE
|
Ruby syntax will perform spellchecking of strings if you define
|
||||||
<
|
"ruby_spellcheck_strings": >
|
||||||
This will prevent highlighting of special identifiers like "ConstantName",
|
|
||||||
"$global_var", "@@class_var", "@instance_var", "| block_param |", and
|
|
||||||
":symbol".
|
|
||||||
|
|
||||||
Significant methods of Kernel, Module and Object are highlighted by default.
|
:let ruby_spellcheck_strings = 1
|
||||||
This can be disabled by defining "ruby_no_special_methods": >
|
|
||||||
|
|
||||||
:let ruby_no_special_methods = 1
|
|
||||||
<
|
|
||||||
This will prevent highlighting of important methods such as "require", "attr",
|
|
||||||
"private", "raise" and "proc".
|
|
||||||
|
|
||||||
Ruby operators can be highlighted. This is enabled by defining
|
|
||||||
"ruby_operators": >
|
|
||||||
|
|
||||||
:let ruby_operators = 1
|
|
||||||
<
|
|
||||||
Whitespace errors can be highlighted by defining "ruby_space_errors": >
|
|
||||||
|
|
||||||
:let ruby_space_errors = 1
|
|
||||||
<
|
|
||||||
This will highlight trailing whitespace and tabs preceded by a space character
|
|
||||||
as errors. This can be refined by defining "ruby_no_trail_space_error" and
|
|
||||||
"ruby_no_tab_space_error" which will ignore trailing whitespace and tabs after
|
|
||||||
spaces respectively.
|
|
||||||
|
|
||||||
Folding can be enabled by defining "ruby_fold": >
|
|
||||||
|
|
||||||
:let ruby_fold = 1
|
|
||||||
<
|
|
||||||
This will set the 'foldmethod' option to "syntax" and allow folding of
|
|
||||||
classes, modules, methods, code blocks, heredocs and comments.
|
|
||||||
|
|
||||||
Folding of multiline comments can be disabled by defining
|
|
||||||
"ruby_no_comment_fold": >
|
|
||||||
|
|
||||||
:let ruby_no_comment_fold = 1
|
|
||||||
<
|
<
|
||||||
|
|
||||||
SCHEME *scheme.vim* *ft-scheme-syntax*
|
SCHEME *scheme.vim* *ft-scheme-syntax*
|
||||||
|
@ -195,6 +195,12 @@ Other commands:
|
|||||||
:tabs List the tab pages and the windows they contain.
|
:tabs List the tab pages and the windows they contain.
|
||||||
Shows a ">" for the current window.
|
Shows a ">" for the current window.
|
||||||
Shows a "+" for modified buffers.
|
Shows a "+" for modified buffers.
|
||||||
|
For example:
|
||||||
|
Tab page 1 ~
|
||||||
|
+ tabpage.txt ~
|
||||||
|
ex_docmd.c ~
|
||||||
|
Tab page 2 ~
|
||||||
|
> main.c ~
|
||||||
|
|
||||||
|
|
||||||
REORDERING TAB PAGES:
|
REORDERING TAB PAGES:
|
||||||
|
Loading…
Reference in New Issue
Block a user