mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix(vim-patch): add missing nginx runtime files (#15916)
Followup to incomplete runtime update https://github.com/neovim/neovim/pull/15911
This commit is contained in:
parent
17f7c83f29
commit
f6a9f0bfca
@ -1316,7 +1316,7 @@ A string constant accepts these special characters:
|
|||||||
\<xxx> Special key named "xxx". e.g. "\<C-W>" for CTRL-W. This is for use
|
\<xxx> Special key named "xxx". e.g. "\<C-W>" for CTRL-W. This is for use
|
||||||
in mappings, the 0x80 byte is escaped.
|
in mappings, the 0x80 byte is escaped.
|
||||||
To use the double quote character it must be escaped: "<M-\">".
|
To use the double quote character it must be escaped: "<M-\">".
|
||||||
Don't use <Char-xxxx> to get a utf-8 character, use \uxxxx as
|
Don't use <Char-xxxx> to get a UTF-8 character, use \uxxxx as
|
||||||
mentioned above.
|
mentioned above.
|
||||||
|
|
||||||
Note that "\xff" is stored as the byte 255, which may be invalid in some
|
Note that "\xff" is stored as the byte 255, which may be invalid in some
|
||||||
@ -6344,8 +6344,8 @@ list2str({list} [, {utf8}]) *list2str()*
|
|||||||
join(map(list, {nr, val -> nr2char(val)}), '')
|
join(map(list, {nr, val -> nr2char(val)}), '')
|
||||||
< |str2list()| does the opposite.
|
< |str2list()| does the opposite.
|
||||||
|
|
||||||
When {utf8} is omitted or zero, the current 'encoding' is used.
|
UTF-8 encoding is always used, {utf8} option has no effect,
|
||||||
When {utf8} is TRUE, always return UTF-8 characters.
|
and exists only for backwards-compatibility.
|
||||||
With UTF-8 composing characters work as expected: >
|
With UTF-8 composing characters work as expected: >
|
||||||
list2str([97, 769]) returns "á"
|
list2str([97, 769]) returns "á"
|
||||||
<
|
<
|
||||||
@ -7007,8 +7007,7 @@ nr2char({expr} [, {utf8}]) *nr2char()*
|
|||||||
nr2char(32) returns " "
|
nr2char(32) returns " "
|
||||||
< Example for "utf-8": >
|
< Example for "utf-8": >
|
||||||
nr2char(300) returns I with bow character
|
nr2char(300) returns I with bow character
|
||||||
< When {utf8} is TRUE, always return UTF-8 characters.
|
< UTF-8 encoding is always used, {utf8} option has no effect,
|
||||||
UTF-8 encoding is always used, {utf8} option has no effect,
|
|
||||||
and exists only for backwards-compatibility.
|
and exists only for backwards-compatibility.
|
||||||
Note that a NUL character in the file is specified with
|
Note that a NUL character in the file is specified with
|
||||||
nr2char(10), because NULs are represented with newline
|
nr2char(10), because NULs are represented with newline
|
||||||
@ -8973,10 +8972,9 @@ str2list({string} [, {utf8}]) *str2list()*
|
|||||||
str2list("ABC") returns [65, 66, 67]
|
str2list("ABC") returns [65, 66, 67]
|
||||||
< |list2str()| does the opposite.
|
< |list2str()| does the opposite.
|
||||||
|
|
||||||
When {utf8} is omitted or zero, the current 'encoding' is used.
|
UTF-8 encoding is always used, {utf8} option has no effect,
|
||||||
When {utf8} is TRUE, always treat the String as UTF-8
|
and exists only for backwards-compatibility.
|
||||||
characters. With UTF-8 composing characters are handled
|
With UTF-8 composing characters are handled properly: >
|
||||||
properly: >
|
|
||||||
str2list("á") returns [97, 769]
|
str2list("á") returns [97, 769]
|
||||||
|
|
||||||
< Can also be used as a |method|: >
|
< Can also be used as a |method|: >
|
||||||
|
@ -888,7 +888,7 @@ Motif. Use the ":hi Menu font={fontname}" command for this. |:highlight|
|
|||||||
TYPING UTF-8 *utf-8-typing*
|
TYPING UTF-8 *utf-8-typing*
|
||||||
|
|
||||||
If you are using X-Windows, you should find an input method that supports
|
If you are using X-Windows, you should find an input method that supports
|
||||||
utf-8.
|
UTF-8.
|
||||||
|
|
||||||
If your system does not provide support for typing UTF-8, you can use the
|
If your system does not provide support for typing UTF-8, you can use the
|
||||||
'keymap' feature. This allows writing a keymap file, which defines a UTF-8
|
'keymap' feature. This allows writing a keymap file, which defines a UTF-8
|
||||||
|
6
runtime/ftplugin/nginx.vim
Normal file
6
runtime/ftplugin/nginx.vim
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
" Vim filetype plugin
|
||||||
|
" Language: nginx.conf
|
||||||
|
" Maintainer: Chris Aumann <me@chr4.org>
|
||||||
|
" Last Change: Apr 15, 2017
|
||||||
|
|
||||||
|
setlocal commentstring=#\ %s
|
17
runtime/indent/nginx.vim
Normal file
17
runtime/indent/nginx.vim
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
" Vim indent file
|
||||||
|
" Language: nginx.conf
|
||||||
|
" Maintainer: Chris Aumann <me@chr4.org>
|
||||||
|
" Last Change: Apr 15, 2017
|
||||||
|
|
||||||
|
if exists("b:did_indent")
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let b:did_indent = 1
|
||||||
|
|
||||||
|
setlocal indentexpr=
|
||||||
|
|
||||||
|
" cindent actually works for nginx' simple file structure
|
||||||
|
setlocal cindent
|
||||||
|
|
||||||
|
" Just make sure that the comments are not reset as defs would be.
|
||||||
|
setlocal cinkeys-=0#
|
2307
runtime/syntax/nginx.vim
Normal file
2307
runtime/syntax/nginx.vim
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user