mirror of
https://github.com/neovim/neovim
synced 2025-07-16 01:01:49 +00:00
@ -38,7 +38,7 @@ done, the features in this document are not available. See |+eval| and
|
|||||||
There are six types of variables:
|
There are six types of variables:
|
||||||
|
|
||||||
Number A 32 or 64 bit signed number. |expr-number| *Number*
|
Number A 32 or 64 bit signed number. |expr-number| *Number*
|
||||||
Examples: -123 0x10 0177
|
Examples: -123 0x10 0177 0b1011
|
||||||
|
|
||||||
Float A floating point number. |floating-point-format| *Float*
|
Float A floating point number. |floating-point-format| *Float*
|
||||||
Examples: 123.456 1.15e-6 -1.1e3
|
Examples: 123.456 1.15e-6 -1.1e3
|
||||||
@ -1022,9 +1022,10 @@ When expr8 is a |Funcref| type variable, invoke the function it refers to.
|
|||||||
number
|
number
|
||||||
------
|
------
|
||||||
number number constant *expr-number*
|
number number constant *expr-number*
|
||||||
*hex-number* *octal-number*
|
*hex-number* *octal-number* *binary-number*
|
||||||
|
|
||||||
Decimal, Hexadecimal (starting with 0x or 0X), or Octal (starting with 0).
|
Decimal, Hexadecimal (starting with 0x or 0X), Binary (starting with 0b or 0B)
|
||||||
|
and Octal (starting with 0).
|
||||||
|
|
||||||
*floating-point-format*
|
*floating-point-format*
|
||||||
Floating point numbers can be written in two forms:
|
Floating point numbers can be written in two forms:
|
||||||
@ -1425,8 +1426,8 @@ v:beval_winnr The number of the window, over which the mouse pointer is. Only
|
|||||||
window gets a number).
|
window gets a number).
|
||||||
|
|
||||||
*v:beval_winid* *beval_winid-variable*
|
*v:beval_winid* *beval_winid-variable*
|
||||||
v:beval_winid The window ID of the window, over which the mouse pointer is.
|
v:beval_winid The |window-ID| of the window, over which the mouse pointer
|
||||||
Otherwise like v:beval_winnr.
|
is. Otherwise like v:beval_winnr.
|
||||||
|
|
||||||
*v:char* *char-variable*
|
*v:char* *char-variable*
|
||||||
v:char Argument for evaluating 'formatexpr' and used for the typed
|
v:char Argument for evaluating 'formatexpr' and used for the typed
|
||||||
@ -1686,7 +1687,7 @@ v:mouse_win Window number for a mouse click obtained with |getchar()|.
|
|||||||
zero when there was no mouse button click.
|
zero when there was no mouse button click.
|
||||||
|
|
||||||
*v:mouse_winid* *mouse_winid-variable*
|
*v:mouse_winid* *mouse_winid-variable*
|
||||||
v:mouse_winid Window ID for a mouse click obtained with |getchar()|.
|
v:mouse_winid |window-ID| for a mouse click obtained with |getchar()|.
|
||||||
The value is zero when there was no mouse button click.
|
The value is zero when there was no mouse button click.
|
||||||
|
|
||||||
*v:mouse_lnum* *mouse_lnum-variable*
|
*v:mouse_lnum* *mouse_lnum-variable*
|
||||||
@ -1922,9 +1923,10 @@ v:vim_did_enter Zero until most of startup is done. It is set to one just
|
|||||||
v:warningmsg Last given warning message. It's allowed to set this variable.
|
v:warningmsg Last given warning message. It's allowed to set this variable.
|
||||||
|
|
||||||
*v:windowid* *windowid-variable*
|
*v:windowid* *windowid-variable*
|
||||||
v:windowid Application-specific window ID ("window handle" in MS-Windows)
|
v:windowid Application-specific window "handle" which may be set by any
|
||||||
which may be set by any attached UI. Defaults to zero.
|
attached UI. Defaults to zero.
|
||||||
Note: for windows inside Vim use |winnr()| or |win_getid()|.
|
Note: For Nvim |windows| use |winnr()| or |win_getid()|, see
|
||||||
|
|window-ID|.
|
||||||
|
|
||||||
==============================================================================
|
==============================================================================
|
||||||
4. Builtin Functions *functions*
|
4. Builtin Functions *functions*
|
||||||
@ -1968,7 +1970,7 @@ buflisted({expr}) Number |TRUE| if buffer {expr} is listed
|
|||||||
bufloaded({expr}) Number |TRUE| if buffer {expr} is loaded
|
bufloaded({expr}) Number |TRUE| if buffer {expr} is loaded
|
||||||
bufname({expr}) String Name of the buffer {expr}
|
bufname({expr}) String Name of the buffer {expr}
|
||||||
bufnr({expr} [, {create}]) Number Number of the buffer {expr}
|
bufnr({expr} [, {create}]) Number Number of the buffer {expr}
|
||||||
bufwinid({expr}) Number window ID of buffer {expr}
|
bufwinid({expr}) Number |window-ID| of buffer {expr}
|
||||||
bufwinnr({expr}) Number window number of buffer {expr}
|
bufwinnr({expr}) Number window number of buffer {expr}
|
||||||
byte2line({byte}) Number line number at byte count {byte}
|
byte2line({byte}) Number line number at byte count {byte}
|
||||||
byteidx({expr}, {nr}) Number byte index of {nr}'th char in {expr}
|
byteidx({expr}, {nr}) Number byte index of {nr}'th char in {expr}
|
||||||
@ -2323,10 +2325,10 @@ virtcol({expr}) Number screen column of cursor or mark
|
|||||||
visualmode([expr]) String last visual mode used
|
visualmode([expr]) String last visual mode used
|
||||||
wildmenumode() Number whether 'wildmenu' mode is active
|
wildmenumode() Number whether 'wildmenu' mode is active
|
||||||
win_findbuf({bufnr}) List find windows containing {bufnr}
|
win_findbuf({bufnr}) List find windows containing {bufnr}
|
||||||
win_getid([{win} [, {tab}]]) Number get window ID for {win} in {tab}
|
win_getid([{win} [, {tab}]]) Number get |window-ID| for {win} in {tab}
|
||||||
win_gotoid({expr}) Number go to window with ID {expr}
|
win_gotoid({expr}) Number go to |window-ID| {expr}
|
||||||
win_id2tabwin({expr}) List get tab and window nr from window ID
|
win_id2tabwin({expr}) List get tab and window nr from |window-ID|
|
||||||
win_id2win({expr}) Number get window nr from window ID
|
win_id2win({expr}) Number get window nr from |window-ID|
|
||||||
winbufnr({nr}) Number buffer number of window {nr}
|
winbufnr({nr}) Number buffer number of window {nr}
|
||||||
wincol() Number window column of the cursor
|
wincol() Number window column of the cursor
|
||||||
winheight({nr}) Number height of window {nr}
|
winheight({nr}) Number height of window {nr}
|
||||||
@ -2417,7 +2419,7 @@ arglistid([{winnr} [, {tabnr}]])
|
|||||||
With {winnr} only use this window in the current tab page.
|
With {winnr} only use this window in the current tab page.
|
||||||
With {winnr} and {tabnr} use the window in the specified tab
|
With {winnr} and {tabnr} use the window in the specified tab
|
||||||
page.
|
page.
|
||||||
{winnr} can be the window number or the window ID.
|
{winnr} can be the window number or the |window-ID|.
|
||||||
|
|
||||||
*argv()*
|
*argv()*
|
||||||
argv([{nr}]) The result is the {nr}th file in the argument list of the
|
argv([{nr}]) The result is the {nr}th file in the argument list of the
|
||||||
@ -2652,7 +2654,7 @@ bufnr({expr} [, {create}])
|
|||||||
them. Use bufexists() to test for the existence of a buffer.
|
them. Use bufexists() to test for the existence of a buffer.
|
||||||
|
|
||||||
bufwinid({expr}) *bufwinid()*
|
bufwinid({expr}) *bufwinid()*
|
||||||
The result is a Number, which is the window ID of the first
|
The result is a Number, which is the |window-ID| of the first
|
||||||
window associated with buffer {expr}. For the use of {expr},
|
window associated with buffer {expr}. For the use of {expr},
|
||||||
see |bufname()| above. If buffer {expr} doesn't exist or
|
see |bufname()| above. If buffer {expr} doesn't exist or
|
||||||
there is no such window, -1 is returned. Example: >
|
there is no such window, -1 is returned. Example: >
|
||||||
@ -4071,7 +4073,7 @@ getcwd([{winnr}[, {tabnr}]]) *getcwd()*
|
|||||||
getcwd(0)
|
getcwd(0)
|
||||||
getcwd(0, 0)
|
getcwd(0, 0)
|
||||||
< If {winnr} is -1 it is ignored, only the tab is resolved.
|
< If {winnr} is -1 it is ignored, only the tab is resolved.
|
||||||
{winnr} can be the window number or the window ID.
|
{winnr} can be the window number or the |window-ID|.
|
||||||
|
|
||||||
|
|
||||||
getfsize({fname}) *getfsize()*
|
getfsize({fname}) *getfsize()*
|
||||||
@ -4166,7 +4168,7 @@ getline({lnum} [, {end}])
|
|||||||
|
|
||||||
getloclist({nr},[, {what}]) *getloclist()*
|
getloclist({nr},[, {what}]) *getloclist()*
|
||||||
Returns a list with all the entries in the location list for
|
Returns a list with all the entries in the location list for
|
||||||
window {nr}. {nr} can be the window number or the window ID.
|
window {nr}. {nr} can be the window number or the |window-ID|.
|
||||||
When {nr} is zero the current window is used.
|
When {nr} is zero the current window is used.
|
||||||
|
|
||||||
For a location list window, the displayed location list is
|
For a location list window, the displayed location list is
|
||||||
@ -4241,7 +4243,7 @@ getqflist([{what}]) *getqflist()*
|
|||||||
type type of the error, 'E', '1', etc.
|
type type of the error, 'E', '1', etc.
|
||||||
valid |TRUE|: recognized error message
|
valid |TRUE|: recognized error message
|
||||||
|
|
||||||
When there is no error list or it's empty an empty list is
|
When there is no error list or it's empty, an empty list is
|
||||||
returned. Quickfix list entries with non-existing buffer
|
returned. Quickfix list entries with non-existing buffer
|
||||||
number are returned with "bufnr" set to zero.
|
number are returned with "bufnr" set to zero.
|
||||||
|
|
||||||
@ -4256,8 +4258,8 @@ getqflist([{what}]) *getqflist()*
|
|||||||
returns only the items listed in {what} as a dictionary. The
|
returns only the items listed in {what} as a dictionary. The
|
||||||
following string items are supported in {what}:
|
following string items are supported in {what}:
|
||||||
nr get information for this quickfix list
|
nr get information for this quickfix list
|
||||||
title get list title
|
title get the list title
|
||||||
winid get window id (if opened)
|
winid get the |window-ID| (if opened)
|
||||||
all all of the above quickfix properties
|
all all of the above quickfix properties
|
||||||
Non-string items in {what} are ignored.
|
Non-string items in {what} are ignored.
|
||||||
If "nr" is not present then the current quickfix list is used.
|
If "nr" is not present then the current quickfix list is used.
|
||||||
@ -4267,7 +4269,7 @@ getqflist([{what}]) *getqflist()*
|
|||||||
The returned dictionary contains the following entries:
|
The returned dictionary contains the following entries:
|
||||||
nr quickfix list number
|
nr quickfix list number
|
||||||
title quickfix list title text
|
title quickfix list title text
|
||||||
winid quickfix window id (if opened)
|
winid quickfix |window-ID| (if opened)
|
||||||
|
|
||||||
Examples: >
|
Examples: >
|
||||||
:echo getqflist({'all': 1})
|
:echo getqflist({'all': 1})
|
||||||
@ -4314,10 +4316,10 @@ gettabinfo([{arg}]) *gettabinfo()*
|
|||||||
empty List is returned.
|
empty List is returned.
|
||||||
|
|
||||||
Each List item is a Dictionary with the following entries:
|
Each List item is a Dictionary with the following entries:
|
||||||
nr tab page number.
|
tabnr tab page number.
|
||||||
variables a reference to the dictionary with
|
variables a reference to the dictionary with
|
||||||
tabpage-local variables
|
tabpage-local variables
|
||||||
windows List of window IDs in the tab page.
|
windows List of |window-ID|s in the tag page.
|
||||||
|
|
||||||
gettabvar({tabnr}, {varname} [, {def}]) *gettabvar()*
|
gettabvar({tabnr}, {varname} [, {def}]) *gettabvar()*
|
||||||
Get the value of a tab-local variable {varname} in tab page
|
Get the value of a tab-local variable {varname} in tab page
|
||||||
@ -4341,7 +4343,7 @@ gettabwinvar({tabnr}, {winnr}, {varname} [, {def}]) *gettabwinvar()*
|
|||||||
Note that {varname} must be the name without "w:".
|
Note that {varname} must be the name without "w:".
|
||||||
Tabs are numbered starting with one. For the current tabpage
|
Tabs are numbered starting with one. For the current tabpage
|
||||||
use |getwinvar()|.
|
use |getwinvar()|.
|
||||||
{winnr} can be the window number or the window ID.
|
{winnr} can be the window number or the |window-ID|.
|
||||||
When {winnr} is zero the current window is used.
|
When {winnr} is zero the current window is used.
|
||||||
This also works for a global option, buffer-local option and
|
This also works for a global option, buffer-local option and
|
||||||
window-local option, but it doesn't work for a global variable
|
window-local option, but it doesn't work for a global variable
|
||||||
@ -4369,20 +4371,20 @@ getwininfo([{winid}]) *getwininfo()*
|
|||||||
is returned. If the window does not exist the result is an
|
is returned. If the window does not exist the result is an
|
||||||
empty list.
|
empty list.
|
||||||
|
|
||||||
Without an information about all the windows in all the tab
|
Without {winid} information about all the windows in all the
|
||||||
pages is returned.
|
tab pages is returned.
|
||||||
|
|
||||||
Each List item is a Dictionary with the following entries:
|
Each List item is a Dictionary with the following entries:
|
||||||
bufnum number of buffer in the window
|
bufnr number of buffer in the window
|
||||||
height window height
|
height window height
|
||||||
loclist 1 if showing a location list
|
loclist 1 if showing a location list
|
||||||
nr window number
|
|
||||||
quickfix 1 if quickfix or location list window
|
quickfix 1 if quickfix or location list window
|
||||||
tpnr tab page number
|
tabnr tab page number
|
||||||
variables a reference to the dictionary with
|
variables a reference to the dictionary with
|
||||||
window-local variables
|
window-local variables
|
||||||
width window width
|
width window width
|
||||||
winid window ID
|
winid |window-ID|
|
||||||
|
winnr window number
|
||||||
|
|
||||||
To obtain all window-local variables use: >
|
To obtain all window-local variables use: >
|
||||||
gettabwinvar({tabnr}, {winnr}, '&')
|
gettabwinvar({tabnr}, {winnr}, '&')
|
||||||
@ -4486,9 +4488,8 @@ has_key({dict}, {key}) *has_key()*
|
|||||||
an entry with key {key}. Zero otherwise.
|
an entry with key {key}. Zero otherwise.
|
||||||
|
|
||||||
haslocaldir([{winnr}[, {tabnr}]]) *haslocaldir()*
|
haslocaldir([{winnr}[, {tabnr}]]) *haslocaldir()*
|
||||||
The result is a Number, which is 1 when the specified tabpage
|
The result is a Number, which is 1 when the tabpage or window
|
||||||
or window has a local path set via |:lcd| or |:tcd|, and
|
has set a local path via |:tcd| or |:lcd|, otherwise 0.
|
||||||
0 otherwise.
|
|
||||||
|
|
||||||
Tabs and windows are identified by their respective numbers,
|
Tabs and windows are identified by their respective numbers,
|
||||||
0 means current tab or window. Missing argument implies 0.
|
0 means current tab or window. Missing argument implies 0.
|
||||||
@ -4496,7 +4497,9 @@ haslocaldir([{winnr}[, {tabnr}]]) *haslocaldir()*
|
|||||||
haslocaldir()
|
haslocaldir()
|
||||||
haslocaldir(0)
|
haslocaldir(0)
|
||||||
haslocaldir(0, 0)
|
haslocaldir(0, 0)
|
||||||
< {winnr} can be the window number or the window ID.
|
< With {winnr} use that window in the current tabpage.
|
||||||
|
With {winnr} and {tabnr} use the window in that tabpage.
|
||||||
|
{winnr} can be the window number or the |window-ID|.
|
||||||
If {winnr} is -1 it is ignored, only the tab is resolved.
|
If {winnr} is -1 it is ignored, only the tab is resolved.
|
||||||
|
|
||||||
hasmapto({what} [, {mode} [, {abbr}]]) *hasmapto()*
|
hasmapto({what} [, {mode} [, {abbr}]]) *hasmapto()*
|
||||||
@ -5814,6 +5817,9 @@ printf({fmt}, {expr1} ...) *printf()*
|
|||||||
s The text of the String argument is used. If a
|
s The text of the String argument is used. If a
|
||||||
precision is specified, no more bytes than the number
|
precision is specified, no more bytes than the number
|
||||||
specified are used.
|
specified are used.
|
||||||
|
If the argument is not a String type, it is
|
||||||
|
automatically converted to text with the same format
|
||||||
|
as ":echo".
|
||||||
*printf-S*
|
*printf-S*
|
||||||
S The text of the String argument is used. If a
|
S The text of the String argument is used. If a
|
||||||
precision is specified, no more display cells than the
|
precision is specified, no more display cells than the
|
||||||
@ -6537,7 +6543,7 @@ setline({lnum}, {text}) *setline()*
|
|||||||
|
|
||||||
setloclist({nr}, {list} [, {action}[, {what}]]) *setloclist()*
|
setloclist({nr}, {list} [, {action}[, {what}]]) *setloclist()*
|
||||||
Create or replace or add to the location list for window {nr}.
|
Create or replace or add to the location list for window {nr}.
|
||||||
{nr} can be the window number or the window ID.
|
{nr} can be the window number or the |window-ID|.
|
||||||
When {nr} is zero the current window is used.
|
When {nr} is zero the current window is used.
|
||||||
|
|
||||||
For a location list window, the displayed location list is
|
For a location list window, the displayed location list is
|
||||||
@ -6729,7 +6735,7 @@ settabwinvar({tabnr}, {winnr}, {varname}, {val}) *settabwinvar()*
|
|||||||
{val}.
|
{val}.
|
||||||
Tabs are numbered starting with one. For the current tabpage
|
Tabs are numbered starting with one. For the current tabpage
|
||||||
use |setwinvar()|.
|
use |setwinvar()|.
|
||||||
{winnr} can be the window number or the window ID.
|
{winnr} can be the window number or the |window-ID|.
|
||||||
When {winnr} is zero the current window is used.
|
When {winnr} is zero the current window is used.
|
||||||
This also works for a global or local buffer option, but it
|
This also works for a global or local buffer option, but it
|
||||||
doesn't work for a global or local buffer variable.
|
doesn't work for a global or local buffer variable.
|
||||||
@ -7800,11 +7806,11 @@ wildmenumode() *wildmenumode()*
|
|||||||
|
|
||||||
|
|
||||||
win_findbuf({bufnr}) *win_findbuf()*
|
win_findbuf({bufnr}) *win_findbuf()*
|
||||||
Returns a list with window IDs for windows that contain buffer
|
Returns a list with |window-ID|s for windows that contain
|
||||||
{bufnr}. When there is none the list is empty.
|
buffer {bufnr}. When there is none the list is empty.
|
||||||
|
|
||||||
win_getid([{win} [, {tab}]]) *win_getid()*
|
win_getid([{win} [, {tab}]]) *win_getid()*
|
||||||
Get the window ID for the specified window.
|
Get the |window-ID| for the specified window.
|
||||||
When {win} is missing use the current window.
|
When {win} is missing use the current window.
|
||||||
With {win} this is the window number. The top window has
|
With {win} this is the window number. The top window has
|
||||||
number 1.
|
number 1.
|
||||||
@ -7829,7 +7835,7 @@ win_id2win({expr}) *win_id2win()*
|
|||||||
*winbufnr()*
|
*winbufnr()*
|
||||||
winbufnr({nr}) The result is a Number, which is the number of the buffer
|
winbufnr({nr}) The result is a Number, which is the number of the buffer
|
||||||
associated with window {nr}. {nr} can be the window number or
|
associated with window {nr}. {nr} can be the window number or
|
||||||
the window ID.
|
the |window-ID|.
|
||||||
When {nr} is zero, the number of the buffer in the current
|
When {nr} is zero, the number of the buffer in the current
|
||||||
window is returned.
|
window is returned.
|
||||||
When window {nr} doesn't exist, -1 is returned.
|
When window {nr} doesn't exist, -1 is returned.
|
||||||
@ -7843,7 +7849,7 @@ wincol() The result is a Number, which is the virtual column of the
|
|||||||
|
|
||||||
winheight({nr}) *winheight()*
|
winheight({nr}) *winheight()*
|
||||||
The result is a Number, which is the height of window {nr}.
|
The result is a Number, which is the height of window {nr}.
|
||||||
{nr} can be the window number or the window ID.
|
{nr} can be the window number or the |window-ID|.
|
||||||
When {nr} is zero, the height of the current window is
|
When {nr} is zero, the height of the current window is
|
||||||
returned. When window {nr} doesn't exist, -1 is returned.
|
returned. When window {nr} doesn't exist, -1 is returned.
|
||||||
An existing window always has a height of zero or more.
|
An existing window always has a height of zero or more.
|
||||||
@ -7923,7 +7929,7 @@ winsaveview() Returns a |Dictionary| that contains information to restore
|
|||||||
|
|
||||||
winwidth({nr}) *winwidth()*
|
winwidth({nr}) *winwidth()*
|
||||||
The result is a Number, which is the width of window {nr}.
|
The result is a Number, which is the width of window {nr}.
|
||||||
{nr} can be the window number or the window ID.
|
{nr} can be the window number or the |window-ID|.
|
||||||
When {nr} is zero, the width of the current window is
|
When {nr} is zero, the width of the current window is
|
||||||
returned. When window {nr} doesn't exist, -1 is returned.
|
returned. When window {nr} doesn't exist, -1 is returned.
|
||||||
An existing window always has a width of zero or more.
|
An existing window always has a width of zero or more.
|
||||||
|
@ -188,7 +188,9 @@ JUMPING TO A SIGN *:sign-jump* *E157*
|
|||||||
If the file isn't displayed in window and the current file can
|
If the file isn't displayed in window and the current file can
|
||||||
not be |abandon|ed this fails.
|
not be |abandon|ed this fails.
|
||||||
|
|
||||||
:sign jump {id} buffer={nr}
|
:sign jump {id} buffer={nr} *E934*
|
||||||
Same, but use buffer {nr}.
|
Same, but use buffer {nr}. This fails if buffer {nr} does not
|
||||||
|
have a name.
|
||||||
|
|
||||||
|
|
||||||
vim:tw=78:ts=8:ft=help:norl:
|
vim:tw=78:ts=8:ft=help:norl:
|
||||||
|
@ -69,7 +69,7 @@ places where a Normal mode command can't be used or is inconvenient.
|
|||||||
|
|
||||||
The main Vim window can hold several split windows. There are also tab pages
|
The main Vim window can hold several split windows. There are also tab pages
|
||||||
|tab-page|, each of which can hold multiple windows.
|
|tab-page|, each of which can hold multiple windows.
|
||||||
|
*window-ID*
|
||||||
Each window has a unique identifier called the window ID. This identifier
|
Each window has a unique identifier called the window ID. This identifier
|
||||||
will not change within a Vim session. The |win_getid()| and |win_id2tabwin()|
|
will not change within a Vim session. The |win_getid()| and |win_id2tabwin()|
|
||||||
functions can be used to convert between the window/tab number and the
|
functions can be used to convert between the window/tab number and the
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types
|
" Vim support file to detect file types
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2016 Jul 21
|
" Last Change: 2016 Aug 18
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
if exists("did_load_filetypes")
|
if exists("did_load_filetypes")
|
||||||
@ -775,8 +775,7 @@ au BufNewFile,BufRead *.mo,*.gdmo setf gdmo
|
|||||||
au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom
|
au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom
|
||||||
|
|
||||||
" Git
|
" Git
|
||||||
au BufNewFile,BufRead COMMIT_EDITMSG setf gitcommit
|
au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG setf gitcommit
|
||||||
au BufNewFile,BufRead MERGE_MSG setf gitcommit
|
|
||||||
au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
|
au BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules setf gitconfig
|
||||||
au BufNewFile,BufRead *.git/modules/*/config setf gitconfig
|
au BufNewFile,BufRead *.git/modules/*/config setf gitconfig
|
||||||
au BufNewFile,BufRead */.config/git/config setf gitconfig
|
au BufNewFile,BufRead */.config/git/config setf gitconfig
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
" Vim indent file
|
" Vim indent file
|
||||||
" Language: Tera Term Language (TTL)
|
" Language: Tera Term Language (TTL)
|
||||||
" Based on Tera Term Version 4.86
|
" Based on Tera Term Version 4.92
|
||||||
" Maintainer: Ken Takata
|
" Maintainer: Ken Takata
|
||||||
" URL: https://github.com/k-takata/vim-teraterm
|
" URL: https://github.com/k-takata/vim-teraterm
|
||||||
" Last Change: 2015 Jun 4
|
" Last Change: 2016 Aug 17
|
||||||
" Filenames: *.ttl
|
" Filenames: *.ttl
|
||||||
" License: VIM License
|
" License: VIM License
|
||||||
|
|
||||||
@ -25,9 +25,7 @@ endif
|
|||||||
" The shiftwidth() function is relatively new.
|
" The shiftwidth() function is relatively new.
|
||||||
" Don't require it to exist.
|
" Don't require it to exist.
|
||||||
if exists('*shiftwidth')
|
if exists('*shiftwidth')
|
||||||
function s:sw() abort
|
let s:sw = function('shiftwidth')
|
||||||
return shiftwidth()
|
|
||||||
endfunction
|
|
||||||
else
|
else
|
||||||
function s:sw() abort
|
function s:sw() abort
|
||||||
return &shiftwidth
|
return &shiftwidth
|
||||||
@ -48,7 +46,7 @@ function! GetTeraTermIndent(lnum)
|
|||||||
|
|
||||||
let l:ind = l:previ
|
let l:ind = l:previ
|
||||||
|
|
||||||
if l:prevl =~ '^\s*if\>.*\<then\s*$'
|
if l:prevl =~ '^\s*if\>.*\<then\>'
|
||||||
" previous line opened a block
|
" previous line opened a block
|
||||||
let l:ind += s:sw()
|
let l:ind += s:sw()
|
||||||
endif
|
endif
|
||||||
|
94
runtime/keymap/russian-jcukenmac.vim
Normal file
94
runtime/keymap/russian-jcukenmac.vim
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
" Vim Keymap file for russian characters, layout 'jcuken', Mac variant
|
||||||
|
|
||||||
|
" Derived from russian-jcuken.vim by Artem Chuprina <ran@ran.pp.ru>
|
||||||
|
" Maintainer: Anton Fonarev <avfonarev@gmail.com>
|
||||||
|
" Last Changed: 2016 August 17
|
||||||
|
|
||||||
|
" All characters are given literally, conversion to another encoding (e.g.,
|
||||||
|
" UTF-8) should work.
|
||||||
|
|
||||||
|
scriptencoding utf-8
|
||||||
|
|
||||||
|
let b:keymap_name = "ru"
|
||||||
|
|
||||||
|
loadkeymap
|
||||||
|
|
||||||
|
\| Ё CYRILLIC CAPITAL LETTER IO
|
||||||
|
\\ ё CYRILLIC SMALL LETTER IO
|
||||||
|
|
||||||
|
F А CYRILLIC CAPITAL LETTER A
|
||||||
|
< Б CYRILLIC CAPITAL LETTER BE
|
||||||
|
D В CYRILLIC CAPITAL LETTER VE
|
||||||
|
U Г CYRILLIC CAPITAL LETTER GHE
|
||||||
|
L Д CYRILLIC CAPITAL LETTER DE
|
||||||
|
T Е CYRILLIC CAPITAL LETTER IE
|
||||||
|
: Ж CYRILLIC CAPITAL LETTER ZHE
|
||||||
|
P З CYRILLIC CAPITAL LETTER ZE
|
||||||
|
B И CYRILLIC CAPITAL LETTER I
|
||||||
|
Q Й CYRILLIC CAPITAL LETTER SHORT I
|
||||||
|
R К CYRILLIC CAPITAL LETTER KA
|
||||||
|
K Л CYRILLIC CAPITAL LETTER EL
|
||||||
|
V М CYRILLIC CAPITAL LETTER EM
|
||||||
|
Y Н CYRILLIC CAPITAL LETTER EN
|
||||||
|
J О CYRILLIC CAPITAL LETTER O
|
||||||
|
G П CYRILLIC CAPITAL LETTER PE
|
||||||
|
H Р CYRILLIC CAPITAL LETTER ER
|
||||||
|
C С CYRILLIC CAPITAL LETTER ES
|
||||||
|
N Т CYRILLIC CAPITAL LETTER TE
|
||||||
|
E У CYRILLIC CAPITAL LETTER U
|
||||||
|
A Ф CYRILLIC CAPITAL LETTER EF
|
||||||
|
{ Х CYRILLIC CAPITAL LETTER HA
|
||||||
|
W Ц CYRILLIC CAPITAL LETTER TSE
|
||||||
|
X Ч CYRILLIC CAPITAL LETTER CHE
|
||||||
|
I Ш CYRILLIC CAPITAL LETTER SHA
|
||||||
|
O Щ CYRILLIC CAPITAL LETTER SHCHA
|
||||||
|
} Ъ CYRILLIC CAPITAL LETTER HARD SIGN
|
||||||
|
S Ы CYRILLIC CAPITAL LETTER YERU
|
||||||
|
M Ь CYRILLIC CAPITAL LETTER SOFT SIGN
|
||||||
|
\" Э CYRILLIC CAPITAL LETTER E
|
||||||
|
> Ю CYRILLIC CAPITAL LETTER YU
|
||||||
|
Z Я CYRILLIC CAPITAL LETTER YA
|
||||||
|
f а CYRILLIC SMALL LETTER A
|
||||||
|
, б CYRILLIC SMALL LETTER BE
|
||||||
|
d в CYRILLIC SMALL LETTER VE
|
||||||
|
u г CYRILLIC SMALL LETTER GHE
|
||||||
|
l д CYRILLIC SMALL LETTER DE
|
||||||
|
t е CYRILLIC SMALL LETTER IE
|
||||||
|
; ж CYRILLIC SMALL LETTER ZHE
|
||||||
|
p з CYRILLIC SMALL LETTER ZE
|
||||||
|
b и CYRILLIC SMALL LETTER I
|
||||||
|
q й CYRILLIC SMALL LETTER SHORT I
|
||||||
|
r к CYRILLIC SMALL LETTER KA
|
||||||
|
k л CYRILLIC SMALL LETTER EL
|
||||||
|
v м CYRILLIC SMALL LETTER EM
|
||||||
|
y н CYRILLIC SMALL LETTER EN
|
||||||
|
j о CYRILLIC SMALL LETTER O
|
||||||
|
g п CYRILLIC SMALL LETTER PE
|
||||||
|
h р CYRILLIC SMALL LETTER ER
|
||||||
|
c с CYRILLIC SMALL LETTER ES
|
||||||
|
n т CYRILLIC SMALL LETTER TE
|
||||||
|
e у CYRILLIC SMALL LETTER U
|
||||||
|
a ф CYRILLIC SMALL LETTER EF
|
||||||
|
[ х CYRILLIC SMALL LETTER HA
|
||||||
|
w ц CYRILLIC SMALL LETTER TSE
|
||||||
|
x ч CYRILLIC SMALL LETTER CHE
|
||||||
|
i ш CYRILLIC SMALL LETTER SHA
|
||||||
|
o щ CYRILLIC SMALL LETTER SHCHA
|
||||||
|
] ъ CYRILLIC SMALL LETTER HARD SIGN
|
||||||
|
s ы CYRILLIC SMALL LETTER YERU
|
||||||
|
m ь CYRILLIC SMALL LETTER SOFT SIGN
|
||||||
|
' э CYRILLIC SMALL LETTER E
|
||||||
|
. ю CYRILLIC SMALL LETTER YU
|
||||||
|
z я CYRILLIC SMALL LETTER YA
|
||||||
|
|
||||||
|
§ >
|
||||||
|
± <
|
||||||
|
@ "
|
||||||
|
# №
|
||||||
|
$ %
|
||||||
|
% :
|
||||||
|
^ ,
|
||||||
|
& .
|
||||||
|
* ;
|
||||||
|
` ]
|
||||||
|
~ [
|
@ -2,7 +2,8 @@
|
|||||||
" Language: reStructuredText documentation format
|
" Language: reStructuredText documentation format
|
||||||
" Maintainer: Marshall Ward <marshall.ward@gmail.com>
|
" Maintainer: Marshall Ward <marshall.ward@gmail.com>
|
||||||
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
" Previous Maintainer: Nikolai Weibull <now@bitwi.se>
|
||||||
" Latest Revision: 2016-06-17
|
" Website: https://github.com/marshallward/vim-restructuredtext
|
||||||
|
" Latest Revision: 2016-08-18
|
||||||
|
|
||||||
if exists("b:current_syntax")
|
if exists("b:current_syntax")
|
||||||
finish
|
finish
|
||||||
@ -89,7 +90,7 @@ function! s:DefineOneInlineMarkup(name, start, middle, end, char_left, char_righ
|
|||||||
\ ' start=+' . a:char_left . '\zs' . a:start .
|
\ ' start=+' . a:char_left . '\zs' . a:start .
|
||||||
\ '\ze[^[:space:]' . a:char_right . a:start[strlen(a:start) - 1] . ']+' .
|
\ '\ze[^[:space:]' . a:char_right . a:start[strlen(a:start) - 1] . ']+' .
|
||||||
\ a:middle .
|
\ a:middle .
|
||||||
\ ' end=+\S' . a:end . '\ze\%($\|\s\|[''")\]}>/:.,;!?\\-]\)+'
|
\ ' end=+\S' . a:end . '\ze\%($\|\s\|[''"’)\]}>/:.,;!?\\-]\)+'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:DefineInlineMarkup(name, start, middle, end)
|
function! s:DefineInlineMarkup(name, start, middle, end)
|
||||||
@ -103,6 +104,8 @@ function! s:DefineInlineMarkup(name, start, middle, end)
|
|||||||
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '\[', '\]')
|
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '\[', '\]')
|
||||||
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '{', '}')
|
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '{', '}')
|
||||||
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '<', '>')
|
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '<', '>')
|
||||||
|
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '’', '’')
|
||||||
|
" TODO: Additional Unicode Pd, Po, Pi, Pf, Ps characters
|
||||||
|
|
||||||
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '\%(^\|\s\|[/:]\)', '')
|
call s:DefineOneInlineMarkup(a:name, a:start, middle, a:end, '\%(^\|\s\|[/:]\)', '')
|
||||||
|
|
||||||
@ -186,11 +189,8 @@ hi def link rstHyperlinkTarget String
|
|||||||
hi def link rstExDirective String
|
hi def link rstExDirective String
|
||||||
hi def link rstSubstitutionDefinition rstDirective
|
hi def link rstSubstitutionDefinition rstDirective
|
||||||
hi def link rstDelimiter Delimiter
|
hi def link rstDelimiter Delimiter
|
||||||
hi def link rstEmphasis Underlined
|
hi def rstEmphasis ctermfg=13 term=italic cterm=italic gui=italic
|
||||||
hi def link rstStrongEmphasis Special
|
hi def rstStrongEmphasis ctermfg=1 term=bold cterm=bold gui=bold
|
||||||
" TODO Append these atttributes somehow
|
|
||||||
"hi def rstEmphasis term=italic cterm=italic gui=italic
|
|
||||||
"hi def rstStrongEmphasis term=bold cterm=bold gui=bold
|
|
||||||
hi def link rstInterpretedTextOrHyperlinkReference Identifier
|
hi def link rstInterpretedTextOrHyperlinkReference Identifier
|
||||||
hi def link rstInlineLiteral String
|
hi def link rstInlineLiteral String
|
||||||
hi def link rstSubstitutionReference PreProc
|
hi def link rstSubstitutionReference PreProc
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Tera Term Language (TTL)
|
" Language: Tera Term Language (TTL)
|
||||||
" Based on Tera Term Version 4.86
|
" Based on Tera Term Version 4.92
|
||||||
" Maintainer: Ken Takata
|
" Maintainer: Ken Takata
|
||||||
" URL: https://github.com/k-takata/vim-teraterm
|
" URL: https://github.com/k-takata/vim-teraterm
|
||||||
" Last Change: 2015 Jun 24
|
" Last Change: 2016 Aug 17
|
||||||
" Filenames: *.ttl
|
" Filenames: *.ttl
|
||||||
" License: VIM License
|
" License: VIM License
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ syn keyword ttlOperator and or xor not
|
|||||||
|
|
||||||
syn match ttlVar "\<groupmatchstr\d\>"
|
syn match ttlVar "\<groupmatchstr\d\>"
|
||||||
syn match ttlVar "\<param\d\>"
|
syn match ttlVar "\<param\d\>"
|
||||||
syn keyword ttlVar inputstr matchstr paramcnt result timeout mtimeout
|
syn keyword ttlVar inputstr matchstr paramcnt params result timeout mtimeout
|
||||||
|
|
||||||
|
|
||||||
syn match ttlLine nextgroup=ttlStatement "^"
|
syn match ttlLine nextgroup=ttlStatement "^"
|
||||||
|
Reference in New Issue
Block a user