import { fn } from "https://deno.land/x/ddc_vim@v4.3.1/deps.ts";
A module to provide functions of Vim and Neovim native functions.
import { Denops } from "../mod.ts";
import * as fn from "../function/mod.ts";
export async function main(denops: Denops): Promise<void> {
// fn holds functions exists in both Vim and Neovim
console.log(fn.or(denops, 0, 1));
}
See vim/mod.ts
or nvim/mod.ts
if you need Vim or Neovim specific functions.
Functions
Return the absolute value of {expr}. When {expr} evaluates to
a | |
Return the arc cosine of {expr} measured in radians, as a
| |
Append the item {expr} to | |
Bitwise AND on the two arguments. The arguments are converted
to a number. A List, Dict or Float argument causes an error.
Also see | |
Like | |
The result is the number of files in the argument list. See
| |
The result is the current index in the argument list. 0 is
the first file. argc() - 1 is the last one. See | |
Return the argument list ID. This is a number which
identifies the argument list being used. Zero is used for the
global argument list. See | |
The result is the **{nr}**th file in the argument list. See
| |
Return the arc sine of {expr} measured in radians, as a | |
Assert if | |
Assert if | |
Return the principal value of the arc tangent of {expr}, in
the range [-pi/2, +pi/2] radians, as a | |
Return the arc tangent of {expr1} / {expr2}, measured in
radians, as a | |
Put up a file requester. This only works when "has("browse")"
returns | |
Put up a directory requester. This only works when
"has("browse")" returns | |
Add a buffer to the buffer list with name {name} (must be a String). If a buffer for file {name} already exists, return that buffer number. Otherwise return the buffer number of the newly created buffer. When {name} is an empty string then a new buffer is always created. The buffer will not have 'buflisted' set and not be loaded yet. To add some text to the buffer use this: | |
The result is a Number, which is | |
The result is a Number, which is | |
Ensure the buffer {buf} is loaded. When the buffer name
refers to an existing file then the file is read. Otherwise
the buffer will be empty. If the buffer was already loaded
then there is no change. If the buffer is not related to a
file the no file is read (e.g., when 'buftype' is "nofile").
If there is an existing swap file for the file of the buffer,
there will be no dialog, the buffer will be loaded anyway.
The {buf} argument is used like with | |
The result is a Number, which is | |
The result is the name of a buffer. Mostly as it is displayed
by the | |
The result is the number of a buffer, as it is displayed by
the | |
The result is a Number, which is the | |
Like | |
Return the line number that contains the character at byte
count {byte} in the current buffer. This includes the
end-of-line character, depending on the 'fileformat' option
for the current buffer. The first character has byte count
one.
Also see | |
Like byteidx(), except that a composing character is counted as a separate character. Example: | |
Call function {func} with the items in | |
Return the smallest integral value greater than or equal to
{expr} as a | |
Return the number of the most recent change. This is the same
number as what is displayed with | |
Return the character class of the first character in {string}.
The character class is one of:
0 blank
1 punctuation
2 word character
3 emoji
other specific Unicode class
The class is used in patterns and word motions.
Returns 0 if {string} is not a | |
Same as | |
Change the current working directory to {dir}. The scope of
the directory change depends on the directory of the current
window:
- If the current window has a window-local directory
( | |
Get the amount of indent for line {lnum} according the C
indenting rules, as with 'cindent'.
The indent is counted in spaces, the value of 'tabstop' is
relevant. {lnum} is used just like in | |
Clears all matches previously defined for the current window
by | |
The result is a Number, which is the byte index of the column
position given with {expr}. The accepted positions are:
. the cursor position
$ the end of the cursor line (the result is the
number of bytes in the cursor line plus one)
'x position of mark x (if the mark is not set, 0 is
returned)
v In Visual mode: the start of the Visual area (the
cursor is the end). When not in Visual mode
returns the cursor position. Differs from | |
Add {expr} to the list of matches. Only to be used by the
function specified with the 'completefunc' option.
Returns 0 for failure (empty string or out of memory),
1 when the match was added, 2 when the match was already in
the list.
See | |
Check for a key typed while looking for completion matches.
This is to be used when looking for matches takes some time.
Returns | |
Make a copy of {expr}. For Numbers and Strings this isn't
different from using {expr} directly.
When {expr} is a | |
Return the cosine of {expr}, measured in radians, as a | |
Return the hyperbolic cosine of {expr} as a | |
Specifically used to interrupt a program being debugged. It
will cause process {pid} to get a SIGTRAP. Behavior for other
processes is undefined. See | |
Delete lines {first} to {last} (inclusive) from buffer {buf}. If {last} is omitted then delete line {first} only. On success 0 is returned, on failure 1 is returned. | |
Returns | |
Returns the number of filler lines above line {lnum}.
These are the lines that were inserted at this point in
another diff'ed window. These filler lines are shown in the
display but don't exist in the buffer.
{lnum} is used like with | |
Returns the highlight ID for diff mode at line {lnum} column
{col} (byte index). When the current line does not have a
diff change zero is returned.
{lnum} is used like with | |
Return a list of digraphs. If the {listall} argument is given and it is TRUE, return all digraphs, including the default digraphs. Otherwise, return only user-defined digraphs. | |
Similar to | |
Return the Number 1 if {expr} is empty, zero otherwise.
| |
Return all of environment variables as dictionary. You can check if an environment variable exists like this: | |
Escape the characters in {chars} that occur in {string} with a backslash. Example: | |
Evaluate {string} and return the result. Especially useful to
turn the result of | |
Returns 1 when inside an event handler. That is that Vim got interrupted while waiting for the user to type a character, e.g., when dropping a file on Vim. This means interactive commands cannot be used. Otherwise zero is returned. | |
If {expr} is an executable and is either an absolute path, a relative path or found in $PATH, return the full path. Note that the current directory is used when {expr} starts with "./", which may be a problem for Vim: | |
The result is a Number, which is | |
Return the exponential of {expr} as a | |
The result is a Number, which is | |
The result is a Number, which is 1 when a file with the name {file} exists, and can be written. If {file} doesn't exist, or is not writable, the result is 0. If {file} is a directory, and we can write to it, the result is 2. | |
Just like | |
Return the largest integral value less than or equal to
{expr} as a | |
Return the remainder of {expr1} / {expr2}, even if the
division is not representable. Returns {expr1} - i * {expr2}
for some integer i such that if {expr2} is non-zero, the
result has the same sign as {expr1} and magnitude less than
the magnitude of {expr2}. If {expr2} is zero, the value
returned is zero. The value returned is a | |
Escape {string} for use as file name command argument. All
characters that have a special meaning, such as '%' and '|'
are escaped with a backslash.
For most systems the characters escaped are
| |
The result is a Number. If the line {lnum} is in a closed
fold, the result is the number of the first line in that fold.
If the line {lnum} is not in a closed fold, -1 is returned.
{lnum} is used like with | |
The result is a Number. If the line {lnum} is in a closed
fold, the result is the number of the last line in that fold.
If the line {lnum} is not in a closed fold, -1 is returned.
{lnum} is used like with | |
The result is a Number, which is the foldlevel of line {lnum}
in the current buffer. For nested folds the deepest level is
returned. If there is no fold at line {lnum}, zero is
returned. It doesn't matter if the folds are open or closed.
When used while updating folds (from 'foldexpr') -1 is
returned for lines where folds are still to be updated and the
foldlevel is unknown. As a special case the level of the
previous line is usually available.
{lnum} is used like with | |
Returns a String, to be displayed for a closed fold. This is
the default function used for the 'foldtext' option and should
only be called from evaluating 'foldtext'. It uses the
| |
Returns the text that is displayed for the closed fold at line
{lnum}. Evaluates 'foldtext' in the appropriate context.
When there is no closed fold at {lnum} an empty string is
returned.
{lnum} is used like with | |
Just like | |
Get item {idx} from | |
Return a | |
Returns the | |
The result is a Number which is the state of the modifiers for the last obtained character with getchar() or in another way. These values are added together: 2 shift 4 control 8 alt (meta) 16 meta (when it's different from ALT) 32 mouse double click 64 mouse triple click 96 mouse quadruple click (== 32 + 64) 128 command (Macintosh only) Only the modifiers that have not been included in the character itself are obtained. Thus Shift-a results in "A" without a modifier. Returns 0 if no modifiers are used. | |
Get the position for String {expr}. Same as | |
Get a single character from the user or input stream as a
string.
If [expr] is omitted, wait until a character is available.
If [expr] is 0 or false, only get a character when one is
available. Return an empty string otherwise.
If [expr] is 1 or true, only check if a character is
available, it is not consumed. Return an empty string
if no character is available.
Otherwise this works like | |
Return the type of the current command-line completion.
Only works when the command line is being edited, thus
requires use of | |
Return the current command-line. Only works when the command
line is being edited, thus requires use of | |
Return the position of the cursor in the command line as a
byte count. The first column is 1.
Only works when editing the command line, thus requires use of
| |
Return the screen position of the cursor in the command line
as a byte count. The first column is 1.
Instead of | |
Return the current command-line type. Possible return values
are:
: normal Ex command
> debug mode command | |
Return the current | |
Get the position of the cursor. This is like getpos('.'), but
includes an extra "curswant" item in the list:
[0, lnum, col, off, curswant]
The "curswant" number is the preferred column when moving the
cursor vertically. After | |
Same as | |
Return the value of environment variable {name}. The {name} argument is a string, without a leading '$'. Example: | |
Without an argument returns the name of the normal font being
used. Like what is used for the Normal highlight group
| |
The result is a String, which is the read, write, and execute permissions of the given file {fname}. If {fname} does not exist or its directory cannot be read, an empty string is returned. The result is of the form "rwxrwxrwx", where each group of "rwx" flags represent, in turn, the permissions of the owner of the file, the group the file belongs to, and other users. If a user does not have a given permission the flag for this is replaced with the string "-". Examples: | |
The result is a Number, which is the size in bytes of the given file {fname}. If {fname} is a directory, 0 is returned. If the file {fname} can't be found, -1 is returned. If the size of {fname} is too big to fit in a Number then -2 is returned. | |
The result is a Number, which is the last modification time of
the given file {fname}. The value is measured as seconds
since 1st Jan 1970, and may be passed to strftime(). See also
| |
Without the {buf} argument returns a | |
Return a Number which is the process ID of the Vim process. On Unix and MS-Windows this is a unique number, until Vim exits. | |
Get the position for String {expr}. For possible values of
{expr} see | |
The result is a String, which is type of register {regname}.
The value will be one of:
"v" for | |
If {tabnr} is not specified, then information about all the
tab pages is returned as a | |
Get the value of a tab-local variable {varname} in tab page
{tabnr}. | |
The result is a | |
The result is a Number, which is the X coordinate in pixels of
the left hand side of the GUI Vim window. Also works for an
xterm (uses a timeout of 100 msec).
The result will be -1 if the information is not available.
The value can be used with | |
The result is a Number, which is the Y coordinate in pixels of
the top of the GUI Vim window. Also works for an xterm (uses
a timeout of 100 msec).
The result will be -1 if the information is not available.
The value can be used with | |
Like | |
Convert a file pattern, as used by glob(), into a search pattern. The result can be used to match with a string that is a file name. E.g. | |
Returns 1 if {feature} is supported, 0 otherwise. The
{feature} argument is a feature name like "nvim-0.2.1" or
"win32", see below. See also | |
The result is a Number, which is TRUE if | |
The result is a String, the entry with Number {index} from
{history}. See | |
The result is the Number of the current entry in {history}.
See | |
The result is a Number, which is TRUE if a highlight group called {name} exists. This is when the group has been defined in some way. Not necessarily when highlighting has been defined for it, it may also have been used for a syntax item. | |
The result is a Number, which is the ID of the highlight group with name {name}. When the highlight group doesn't exist, zero is returned. This can be used to retrieve information about the highlight group. For example, to get the background color of the "Comment" group: | |
The result is a String, which is the name of the machine on which Vim is currently running. Machine names greater than 256 characters long are truncated. | |
The result is a Number, which is indent of line {lnum} in the
current buffer. The indent is counted in spaces, the value
of 'tabstop' is relevant. {lnum} is used just like in
| |
The result is a String, which is whatever the user typed on
the command-line. The {prompt} argument is either a prompt
string, or a blank string (for no prompt). A '\n' can be used
in the prompt to start a new line.
The highlighting set with | |
{textlist} must be a | |
Restore typeahead that was saved with a previous | |
Preserve typeahead (also from mappings) and clear it, so that a following prompt gets input from the user. Should be followed by a matching inputrestore() after the prompt. Can be used several times, in which case there must be just as many inputrestore() calls. Returns TRUE when out of memory, FALSE otherwise. | |
This function acts much like the | |
Interrupt script execution. It works more or less like the user typing CTRL-C, most commands won't execute and control returns to the user. This is useful to abort execution from lower down, e.g. in an autocommand. Example: | |
Bitwise invert. The argument is converted to a number. A List, Dict or Float argument causes an error. Example: | |
The result is a Number, which is | |
Return 1 if {expr} is a positive infinity, or -1 a negative infinity, otherwise 0. | |
The result is a Number, which is | |
Return | |
Return true if the value is Position. | |
Return true if the value is ScreenPos. | |
Check if the | |
Return a | |
Join the items in {list} together into one String. When {sep} is specified it is put in between the items. If {sep} is omitted a single space is used. Note that {sep} is not added at the end. You might want to add it there too: | |
Return a | |
Turn the internal byte representation of keys into a form that
can be used for | |
The result is a Number, which is the length of the argument.
When {expr} is a String or a Number the length in bytes is
used, as with | |
Just like | |
The result is a Number, which is the line number of the file
position given with {expr}. The {expr} argument is a string.
The accepted positions are:
. the cursor position
$ the last line in the current buffer
'x position of mark x (if the mark is not set, 0 is
returned)
w0 first line visible in current window (one if the
display isn't updated, e.g. in silent Ex mode)
w$ last line visible in current window (this is one
less than "w0" if no lines are visible)
v In Visual mode: the start of the Visual area (the
cursor is the end). When not in Visual mode
returns the cursor position. Differs from | |
Return the byte count from the start of the buffer for line {lnum}. This includes the end-of-line character, depending on the 'fileformat' option for the current buffer. The first line returns 1. 'encoding' matters, 'fileencoding' is ignored. This can also be used to get the byte count for the line just below the last line: | |
Get the amount of indent for line {lnum} according the lisp
indenting rules, as with 'lisp'.
The indent is counted in spaces, the value of 'tabstop' is
relevant. {lnum} is used just like in | |
Convert each number in {list} to a character string can concatenate them all. Examples: | |
Return the current time, measured as seconds since 1st Jan
1970. See also | |
Return the natural logarithm (base e) of {expr} as a | |
Return the logarithm of Float {expr} to base 10 as a | |
Selects the {nr} match item, as set with a | |
Deletes a match with ID {id} previously defined by | |
Return the maximum value of all items in {expr}. Example: | |
Return the minimum value of all items in {expr}. Example: | |
Return a string that indicates the current mode.
If [expr] is supplied and it evaluates to a non-zero Number or
a non-empty String ( | |
Return the line number of the first line at or below {lnum} that is not blank. Example: | |
Bitwise OR on the two arguments. The arguments are converted
to a number. A List, Dict or Float argument causes an error.
Also see | |
Shorten directory names in the path {path} and return the
result. The tail, the file name, is kept as-is. The other
components in the path are reduced to {len} letters in length.
If {len} is omitted or smaller than 1 then 1 is used (single
letters). Leading | |
Evaluate Perl expression {expr} in scalar context and return its result converted to Vim data structures. If value can't be converted, it is returned as a string Perl representation. Note: If you want an array or hash, {expr} must return a reference to it. Example: | |
Return the power of {x} to the exponent {y} as a | |
Return the line number of the first line at or above {lnum} that is not blank. Example: | |
Returns the effective prompt text for buffer {buf}. {buf} can
be a buffer name or number. See | |
Set a callback for buffer {buf} to {expr}. When {expr} is an empty string the callback is removed. This has only effect if {buf} has 'buftype' set to "prompt". | |
Set prompt for buffer {buf} to {text}. You most likely want {text} to end in a space. The result is only visible if {buf} has 'buftype' set to "prompt". Example: | |
If the popup menu (see | |
Returns non-zero when the popup menu is visible, zero
otherwise. See | |
Evaluate Python expression {expr} and return its result
converted to Vim data structures.
Numbers and strings are returned as they are (strings are
copied though, Unicode strings are additionally converted to
'encoding').
Lists are represented as Vim | |
Evaluate Python expression {expr} and return its result
converted to Vim data structures.
Numbers and strings are returned as they are (strings are
copied though).
Lists are represented as Vim | |
Evaluate Python expression {expr} and return its result
converted to Vim data structures.
Uses Python 2 or 3, see | |
Return a pseudo-random Number generated with an xoshiro128**
algorithm using seed {expr}. The returned number is 32 bits,
also on 64 bits systems, for consistency.
{expr} can be initialized by | |
Returns the single letter name of the register being executed.
Returns an empty string when no register is being executed.
See | |
Returns the single letter name of the register being recorded.
Returns an empty string when not recording. See | |
Return a Float that represents the time value of {time}. Example: | |
Return a String that represents the time value of {time}. This is the number of seconds, a dot and the number of microseconds. Example: | |
Rename the file by the name {from} to the name {to}. This
should also work to move files across file systems. The
result is a Number, which is 0 if the file was renamed
successfully, and non-zero when the renaming failed.
NOTE: If {to} exists it is overwritten without warning.
This function is not available in the | |
Repeat {expr} {count} times and return the concatenated result. Example: | |
Reverse the order of items in {object} in-place.
{object} can be a | |
Round off {expr} to the nearest integral value and return it
as a | |
Evaluate Ruby expression {expr} and return its result
converted to Vim data structures.
Numbers, floats and strings are returned as they are (strings
are copied though).
Arrays are represented as Vim | |
Like | |
The result is a Number, which is the character at position [row, col] on the screen. This works for every possible screen position, also status lines, window separators and the command line. The top left position is row one, column one The character excludes composing characters. For double-byte encodings it may only be the first byte. This is mainly to be used for testing. Returns -1 when row or col is out of range. | |
The result is a | |
The result is a Number, which is the current screen column of the cursor. The leftmost column has number 1. This function is mainly used for testing. | |
The result is a Dict with the screen position of the text
character in window {winid} at buffer line {lnum} and column
{col}. {col} is a one-based byte index.
The Dict has these members:
row screen row
col first screen column
endcol last screen column
curscol cursor screen column
If the specified position is not visible, all values are zero.
The "endcol" value differs from "col" when the character
occupies more than one screen cell. E.g. for a Tab "col" can
be 1 and "endcol" can be 8.
The "curscol" value is where the cursor would be placed. For
a Tab it would be the same as "endcol", while for a double
width character it would be the same as "col".
The | |
The result is a Number, which is the current screen row of the
cursor. The top line has number one.
This function is mainly used for testing.
Alternatively you can use | |
The result is a String that contains the base character and
any composing characters at position [row, col] on the screen.
This is like | |
Return a list of available server names, one per line.
When there are no servers or the information is not available
an empty string is returned. See also | |
Set line {lnum} to {text} in buffer {buf}. This works like
| |
Set option or local variable {varname} in buffer {buf} to
{val}.
This also works for a global or local window option, but it
doesn't work for a global or local window variable.
For a local window option the global value is unchanged.
For the use of {buf}, see | |
Same as | |
Set the command line to {str} and set the cursor position to {pos}. If {pos} is omitted, the cursor is positioned after the text. Returns 0 when successful, 1 when not editing the command line. | |
Set the cursor position in the command line to byte position
{pos}. The first position is 1.
Use | |
Same as | |
Set environment variable {name} to {val}. Example: | |
Set line {lnum} of the current buffer to {text}. To insert
lines use | |
Restores a list of matches saved by | |
Set the position for String {expr}. Possible values: . the cursor 'x mark x | |
Set tab-local variable {varname} to {val} in tab page {tabnr}.
| |
Like | |
Returns a String with 64 hex characters, which is the SHA256 checksum of {string}. | |
Returns the effective value of 'shiftwidth'. This is the 'shiftwidth' value unless it is zero, in which case it is the 'tabstop' value. This function was introduced with patch 7.3.694 in 2012, everybody should have it by now (however it did not allow for the optional {col} argument until 8.1.542). | |
Return the sine of {expr}, measured in radians, as a | |
Return the hyperbolic sine of {expr} as a | |
Return the sound-folded equivalent of {word}. Uses the first language in 'spelllang' for the current window that supports soundfolding. 'spell' must be set. When no sound folding is possible the {word} is returned unmodified. This can be used for making spelling suggestions. Note that the method can be quite slow. | |
Return the non-negative square root of Float {expr} as a
| |
Initialize seed used by
| |
Return a list containing the number values which represent each character in String {string}. Examples: | |
Get a Number corresponding to the character at {index} in
{str}. This uses a zero-based character index, not a byte
index. Composing characters are considered separate
characters here. Use | |
The result is a Number, which is the length of the String
{string} in bytes.
If the argument is a Number it is first converted to a String.
For other types an error is given and zero is returned.
If you want to count the number of multibyte characters use
| |
The result is a String, which is {string} with all unprintable
characters translated into printable characters | |
The result is a Number, which is the number of display cells
String {string} occupies. A Tab character is counted as one
cell, alternatively use | |
The result is the swap file path of the buffer {expr}.
For the use of {buf}, see | |
The result is a Number, which is the translated syntax ID of {synID}. This is the syntax group ID of what is being used to highlight the character. Highlight links given with ":highlight link" are followed. | |
Same as | |
The result is a | |
The result is a Number, which is the number of the current tab page. The first tab page has number 1. | |
Like
| |
Returns a | |
Return the tangent of {expr}, measured in radians, as a | |
Return the hyperbolic tangent of {expr} as a | |
The result is a String, which is the name of a file that doesn't exist. It can be used for a temporary file. The name is different for at least 26 consecutive calls. Example: | |
Pause or unpause a timer. A paused timer does not invoke its callback when its time expires. Unpausing a timer may cause the callback to be invoked almost immediately if enough time has passed. | |
Stop a timer. The timer callback will no longer be invoked. {timer} is an ID returned by timer_start(), thus it must be a Number. If {timer} does not exist there is no error. | |
Stop all timers. The timer callbacks will no longer be invoked. Useful if a timer is misbehaving. If there are no timers there is no error. | |
The result is a copy of the String given, with all uppercase
characters turned into lowercase (just like applying | |
The result is a copy of the String given, with all lowercase
characters turned into uppercase (just like applying | |
Return the largest integral value with magnitude less than or
equal to {expr} as a | |
Return the name of the undo file that would be used for a file
with name {name} when writing. This uses the 'undodir'
option, finding directories that exist. It does not check if
the undo file exists.
{name} is always expanded to the full path, since that is what
is used internally.
If {name} is empty undofile() returns an empty string, since a
buffer without a file name will not write an undo file.
Useful in combination with | |
Remove second and succeeding copies of repeated adjacent {list} items in-place. Returns {list}. If you want a list to remain unmodified make a copy first: | |
Return a | |
The result is a Number, which is the screen column of the file
position given with {expr}. That is, the last screen position
occupied by the character at that position, when the screen
would be of unlimited width. When there is a | |
The result is a String, which describes the last Visual mode
used in the current buffer. Initially it returns an empty
string, but once Visual mode has been used, it returns "v",
"V", or | |
Returns | |
Returns a | |
Get the | |
Go to window with ID {expr}. This may also change the current tabpage. Return TRUE if successful, FALSE if the window cannot be found. | |
Return a list with the tab number and window number of window with ID {expr}: [tabnr, winnr]. Return [0, 0] if the window cannot be found. | |
Return the window number of window with ID {expr}. Return 0 if the window cannot be found in the current tabpage. | |
Move window {nr}'s status line (i.e., the bottom border) by
{offset} rows, as if being dragged by the mouse. {nr} can be a
window number or | |
Return the screen position of window {nr} as a list with two
numbers: [row, col]. The first window always has position
[1, 1], unless there is a tabline, then it is [2, 1].
{nr} can be the window number or the | |
The result is a Number, which is the number of the buffer
associated with window {nr}. {nr} can be the window number or
the | |
The result is a Number, which is the virtual column of the cursor in the window. This is counting screen cells from the left side of the window. The leftmost column is one. | |
The result is a String. For MS-Windows it indicates the OS version. E.g, Windows 10 is "10.0", Windows 8 is "6.2", Windows XP is "5.1". For non-MS-Windows systems the result is an empty string. | |
The result is a Number, which is the height of window {nr}.
{nr} can be the window number or the | |
The result is a Number, which is the screen line of the cursor in the window. This is counting screen lines from the top of the window. The first line is one. If the cursor was moved the view on the file will be updated first, this may cause a scroll. | |
Returns a sequence of | |
Uses the | |
The result is a Number, which is the width of window {nr}.
{nr} can be the window number or the | |
Bitwise XOR on the two arguments. The arguments are converted
to a number. A List, Dict or Float argument causes an error.
Also see |
Interfaces
Type of | |
Type of | |
Only the buffers matching the specified criteria are returned. | |
Type of | |
Type of |
Type Aliases
If the {buf} argument is a number, buffer numbers are used. Number zero is the alternate buffer for the current window. | |
For {lnum} and {end} "$" can be used for the last line of the buffer. Otherwise a number must be used. | |
If {buf} is omitted the current buffer is used.
If {buf} is a Number, that buffer number's name is given.
Number zero is the alternate buffer for the current window.
If {buf} is a String, it is used as a | |
Builtin completion | |
Type of | |
Type of | |
Type of | |
Type of |