Lines Matching refs:as

138 An expression can be used as a condition, ignoring the type and only using
224 This will invoke the function as if using: >
236 Here MyFunction() will get myDict passed as "self". This happens when the
328 NOTE: mylist[s:e] means using the variable "s:e" as index. Watch out for
345 works, as explained above. This creates a shallow copy of the list: Changing
370 same length and all items compare equal, as with using "==". There is one
372 different. There is no automatic type conversion, as with using "==" on
425 :call add(list, [1, 2]) " append a List as one new item
477 For a String one character, including any composing characters, is used as a
525 as a key.
640 It is also possible to add a function without the "dict" attribute as a
771 The length of the replaced bytes must be exactly the same as the value
806 works, as explained above.
938 use in a variable such as "a:1".
942 This is also known as the "null coalescing operator", but that's too
946 |truthy|, this is used as the result. Otherwise the expression after the '??'
947 is evaluated and used as the result. This is most useful to have a default
1089 argument, which is used as a pattern. See |pattern| for what a pattern is.
1126 Since '.' has the same precedence as '+' and '-', you need to read: >
1133 Should be read as: >
1188 expr1'th single byte from expr8. expr8 is used as a String (a number is
1189 automatically converted to a String), expr1 as a Number. This doesn't
1221 characters from expr1a to and including expr1b. expr8 is used as a String,
1222 expr1a and expr1b are used as a Number.
1253 the indexes expr1a and expr1b. This works like with a String, as explained
1277 name will be used as a key in the |Dictionary|. This is just like:
1303 For methods that are also available as global functions this is the same as: >
1372 Before floating point was introduced, the text "123.456" was interpreted as
1383 Or, if you don't want to write them in as floating-point literals, you can
1413 \X.. same as \x..
1414 \X. same as \x.
1417 \U.... same as \u but allows up to 8 hex numbers.
1429 Don't use <Char-xxxx> to get a UTF-8 character, use \uxxxx as
1435 Note that "\xff" is stored as the byte 255, which may be invalid in some
1456 This string is taken as it is. No backslashes are removed or have a special
1484 The result is the contents of the named register, as a single string.
1636 The scope name by itself can be used as a |Dictionary|. For example, to
1746 They will remain valid as long as Vim is running. This can be used to
1783 v:beval_text The text under or after the mouse pointer. Usually a word as
1892 When there are two counts, as in "3d2w", they are multiplied,
1946 v:errors Errors found by assert functions, such as |assert_true()|.
1980 When used as a string this evaluates to "v:false". >
2003 ask Ask the user what to do, as if there
2130 This can also be used as a function argument to use the
2132 When used as a number this evaluates to zero.
2133 When used as a string this evaluates to "v:none". >
2142 When used as a number this evaluates to zero.
2143 When used as a string this evaluates to "v:null". >
2233 as the current one (if $PATH remains unchanged).
2242 On Mac it may just be "vim" and using exepath() as mentioned
2325 results in the user being asked, as would happen when there is
2425 When used as a string this evaluates to "v:true". >
2523 balloon_split({msg}) List split {msg} as used for a balloon
2608 echoraw({expr}) none output {expr} as-is
2835 popup_dialog({what}, {options}) Number create a popup window used as a dialog
2845 popup_menu({what}, {options}) Number create a popup window used as a menu
2974 String escape {string} for use as shell
2992 simplify({filename}) String simplify filename as much as possible
3186 Can also be used as a |method|: >
3193 Return the arc cosine of {expr} measured in radians, as a
3203 Can also be used as a |method|: >
3214 < Note that when {expr} is a |List| it is appended as a single
3219 Can also be used as a |method|: >
3228 < Can also be used as a |method|: >
3233 When {text} is a |List|: Append each item of the |List| as a
3235 Otherwise append {text} as one text line below line {lnum} in
3245 < Can also be used as a |method| after a List, the base is
3246 passed as the second argument: >
3268 Can also be used as a |method| after a List, the base is
3269 passed as the second argument: >
3317 Return the arc sine of {expr} measured in radians, as a |Float|
3327 Can also be used as a |method|: >
3339 the range [-pi/2, +pi/2] radians, as a |Float|.
3347 Can also be used as a |method|: >
3355 radians, as a |Float| in the range [-pi, pi].
3363 Can also be used as a |method|: >
3373 Show {expr} inside the balloon. For the GUI {expr} is used as
3389 < Can also be used as a |method|: >
3408 Can also be used as a |method|: >
3422 Can also be used as a |method|: >
3461 < Can also be used as a |method|: >
3486 Can also be used as a |method|: >
3496 Can also be used as a |method|: >
3508 Can also be used as a |method|: >
3516 Can also be used as a |method|: >
3520 The result is the name of a buffer. Mostly as it is displayed
3521 by the `:ls` command, but not using special names such as
3526 If {buf} is a String, it is used as a |file-pattern| to match
3539 If the {buf} is a String, but you want to use it as a buffer
3542 < Can also be used as a |method|: >
3556 The result is the number of a buffer, as it is displayed by
3574 Can also be used as a |method|: >
3591 Can also be used as a |method|: >
3605 Can also be used as a |method|: >
3616 Can also be used as a |method|: >
3644 Can also be used as a |method|: >
3649 as a separate character. Example: >
3660 Can also be used as a |method|: >
3664 Call function {func} with the items in |List| {arglist} as
3672 Can also be used as a |method|: >
3677 {expr} as a |Float| (round up).
3687 Can also be used as a |method|: >
3698 number as what is displayed with |:undolist| and can be used
3713 < When {utf8} is TRUE, always treat as UTF-8 characters.
3721 Can also be used as a |method|: >
3737 Same as |col()| but returns the character index of the column
3745 < Can also be used as a |method|: >
3758 counted as separate characters.
3771 Can also be used as a |method|: >
3796 < Can also be used as a |method|: >
3801 indenting rules, as with 'cindent'.
3808 Can also be used as a |method|: >
3817 Can also be used as a |method|: >
3857 < Can also be used as a |method|: >
3876 The match can be selected with CTRL-N and CTRL-P as usual with
3891 Can also be used as a |method|, the base is passed as the
3902 the same as one item in the list that 'omnifunc' would return.
3904 Can also be used as a |method|: >
3972 < Can also be used as a |method|: >
3983 {msg} is displayed in a |dialog| with {choices} as the
3996 < For the console, the first letter of each choice is used as
4030 Can also be used as a |method|in: >
4040 A |Dictionary| is copied in a similar way as a |List|.
4042 Can also be used as a |method|: >
4046 Return the cosine of {expr}, measured in radians, as a |Float|.
4054 Can also be used as a |method|: >
4061 Return the hyperbolic cosine of {expr} as a |Float| in the range
4070 Can also be used as a |method|: >
4089 Can also be used as a |method|: >
4105 0 Same as no parameters (e.g., "cscope_connection()").
4138 When there is one argument {list} this is used as a |List|
4166 Can also be used as a |method|: >
4175 Can also be used as a |method|: >
4187 A |Dictionary| is copied in a similar way as a |List|.
4200 Can also be used as a |method|: >
4225 Can also be used as a |method|: >
4242 Can also be used as a |method|: >
4266 Can also be used as a |method|: >
4280 Can also be used as a |method|: >
4304 Can also be used as a |method|: >
4330 Can also be used as a |method|: >
4354 Can be used as a |method|: >
4366 {digraph} as in |digraph_set()|.
4377 Can be used as a |method|: >
4386 Output {string} as-is, including unprintable characters.
4409 Can also be used as a |method|: >
4413 Return all of environment variables as dictionary. You can
4428 Can also be used as a |method|: >
4438 Can also be used as a |method|: >
4462 On MS-Windows an executable in the same directory as Vim is
4471 Can also be used as a |method|: >
4475 Execute an Ex command or commands and return the output as a
4503 Can also be used as a |method|: >
4515 Can also be used as a |method|: >
4613 Can also be used as a |method|: >
4633 Return the exponential of {expr} as a |Float| in the range
4642 Can also be used as a |method|: >
4671 <abuf> autocmd buffer number (as a String!)
4736 Can also be used as a |method|: >
4741 an Ex command such as `:edit`. This expands special keywords,
4748 < Can also be used as a |method|: >
4763 < When {expr1} is the same List as {expr2} then the number of
4787 Can also be used as a |method|: >
4799 Characters in {string} are queued for processing as if they
4822 't' Handle keys as if typed; otherwise they are handled as
4826 GUI. Keys are used as if they were coming from the
4836 will behave as if <Esc> is typed, to avoid getting
4848 Can also be used as a |method|: >
4855 expression, which is used as a String.
4858 {file} is used as-is, you may want to expand wildcards first: >
4864 < Can also be used as a |method|: >
4876 Can also be used as a |method|: >
4902 used as an expression again. Often it is good to use a
4929 Can also be used as a |method|: >
4950 Can also be used as a |method|: >
4961 Can also be used as a |method|: >
4966 the result is a |List| without nesting, as if {maxdepth} is
4985 Can also be used as a |method|: >
5013 Can also be used as a |method|: >
5021 {expr} as a |Float| (round down).
5031 Can also be used as a |method|: >
5041 result has the same sign as {expr1} and magnitude less than
5051 Can also be used as a |method|: >
5058 Escape {string} for use as file name command argument. All
5059 characters that have a special meaning, such as '%' and '|'
5072 Can also be used as a |method|: >
5087 Can also be used as a |method|: >
5097 Can also be used as a |method|: >
5107 Can also be used as a |method|: >
5122 Can also be used as a |method|: >
5153 Can also be used as a |method|: >
5177 Can also be used as a |method|: >
5190 Can also be used as a |method|: >
5220 < Invokes the function as with: >
5229 < Invokes the function as with: >
5241 < Invokes the function as with: >
5245 In that case the {dict} is passed in as "self". Example: >
5266 < Invokes the function as with: >
5269 Can also be used as a |method|: >
5277 There is hardly ever a need to invoke this function, as it is
5298 Preferably used as a |method|: >
5304 Preferably used as a |method|: >
5313 Preferably used as a |method|: >
5322 Preferably used as a |method|: >
5328 Get information about buffers as a List of Dictionaries.
5395 Can also be used as a |method|: >
5414 it is treated as {end} is set to the number of lines in the
5424 < Can also be used as a |method|: >
5448 < Can also be used as a |method|: >
5467 Can also be used as a |method|: >
5484 starting with 0x80 (decimal: 128). This is the same value as
5494 one-byte character it is the character itself as a number.
5504 This example positions the mouse as it would normally happen: >
5539 You may also receive synthetic characters, such as
5568 Get the position for String {expr}. Same as |getpos()| but the
5571 If |getpos()| returns a very large column number, such as
5580 Can also be used as a |method|: >
5584 Return the current character search information as a {dict}
5605 Get a single character from the user or input stream as a
5628 Return the position of the cursor in the command line as a
5652 values are the same as |getcmdtype()|. Returns an empty string
5681 locale locale names (as output of locale -a)
5713 Can also be used as a |method|: >
5741 Can also be used as a |method|: >
5746 Same as |getcurpos()| but the column number in the returned
5754 Can also be used as a |method|: >
5791 < Can also be used as a |method|: >
5801 some systems interpret the empty value as the variable being
5804 Can also be used as a |method|: >
5836 Can also be used as a |method|: >
5849 Can also be used as a |method|: >
5854 the given file {fname}. The value is measured as seconds
5859 Can also be used as a |method|: >
5878 < Note that a type such as "link" will only be returned on
5883 Can also be used as a |method|: >
5910 Can also be used as a |method|: >
5928 {end} is used in the same way as {lnum}.
5936 < Can also be used as a |method|: >
5948 returned. Otherwise, same as |getqflist()|.
5951 returns the items listed in {what} as a dictionary. Refer to
5991 Can also be used as a |method|: >
5998 as |setmatches()| can restore a list of matches saved by
6079 Can also be used as a |method|: >
6115 returns only the items listed in {what} as a dictionary. The
6198 third argument both NLs and zero bytes are represented as NLs
6206 Can also be used as a |method|: >
6210 Returns detailed information about register {regname} as a
6215 regtype the type of register {regname}, as in
6235 Can also be used as a |method|: >
6251 Can also be used as a |method|: >
6256 tab pages is returned as a |List|. Each List item is a
6267 Can also be used as a |method|: >
6280 Can also be used as a |method|: >
6309 < Can also be used as a |method|: >
6340 Can also be used as a |method|: >
6357 Returns information about windows as a |List| with Dictionaries.
6360 is returned, as a |List| with one item. If the window does not
6393 Can also be used as a |method|: >
6416 Can also be used as a |method|: >
6439 < Can also be used as a |method|: >
6461 things, such as limiting the number of matches.
6478 Can also be used as a |method|: >
6482 Convert a file pattern, as used by glob(), into a search
6493 Can also be used as a |method|: >
6522 {alllinks} is used as with |glob()|.
6531 Can also be used as a |method|, the base is passed as the
6559 < If the `endif` would be moved to the second line as "| endif" it
6568 Can also be used as a |method|: >
6605 Can also be used as a |method|: >
6639 Can also be used as a |method|: >
6663 Can also be used as a |method|, the base is passed as the
6671 If the parameter {item} evaluates to a String, it is used as a
6675 If {item} evaluates to a Number, it will be interpreted as
6699 Can also be used as a |method|: >
6717 Can also be used as a |method|: >
6728 < Can also be used as a |method|: >
6740 Can also be used as a |method|: >
6791 Can also be used as a |method|: >
6842 Can also be used as a |method|: >
6856 Can also be used as a |method|: >
6883 Can also be used as a |method|: >
6893 Can also be used as a |method|: >
6915 < Can also be used as a |method|: >
6933 is used for the default reply, as if the user typed this.
6939 not performed. The supported completion types are the same as
6963 < Can also be used as a |method|: >
6980 Can also be used as a |method|: >
7000 < Can also be used as a |method|: >
7013 be used several times, in which case there must be just as
7020 a) the user's response will be displayed as a sequence of
7028 Can also be used as a |method|: >
7045 Note that when {item} is a |List| it is inserted as a single
7048 Can also be used as a |method|: >
7068 < Can also be used as a |method|: >
7075 is any expression, which is used as a String.
7077 Can also be used as a |method|: >
7088 Can also be used as a |method|: >
7108 Can also be used as a |method|: >
7116 Can also be used as a |method|: >
7131 < Can also be used as a |method|: >
7144 < String items are used as-is. |Lists| and |Dictionaries| are
7148 Can also be used as a |method|: >
7158 Can also be used as a |method|: >
7168 Will be encoded as:
7175 Can also be used as a |method|: >
7184 "[1, 2, ]" is the same as "[1, 2]".
7186 same as {"1":2}.
7201 ignored, e.g. "\a" is decoded as "a".
7203 a 12 character sequence such as "\uD834\uDD1E", but
7205 such as "\uD834" or "\uD834\u"
7208 accepted by json_decode() as the result must be a valid Vim
7211 Can also be used as a |method|: >
7215 Encode {expr} as JSON and return this as a string.
7218 Vim values are converted as follows:
7226 |List| as an array (possibly null); when
7228 |Dict| as an object (possibly null); when
7230 |Blob| as an array of the individual bytes
7235 Note that NaN and Infinity are passed on as values. This is
7239 Can also be used as a |method|: >
7246 Can also be used as a |method|: >
7252 used, as with |strlen()|.
7260 Can also be used as a |method|: >
7272 function returns NULL, this will appear as an empty string ""
7275 If {argument} is a number, it is passed to the function as an
7276 int; if {argument} is a string, it is passed as a
7303 object code must be compiled as position-independent ('PIC').
7309 < Can also be used as a |method|, the base is passed as the
7324 Can also be used as a |method|, the base is passed as the
7360 Can also be used as a |method|: >
7377 Can also be used as a |method|: >
7382 indenting rules, as with 'lisp'.
7388 Can also be used as a |method|: >
7401 Can also be used as a |method|: >
7415 With UTF-8 composing characters work as expected: >
7418 Can also be used as a |method|: >
7490 Can also be used as a |method|, the base is passed as the
7502 Can also be used as a |method|: >
7510 Can also be used as a |method|: >
7514 Return the current time, measured as seconds since 1st Jan
7519 Return the natural logarithm (base e) of {expr} as a |Float|.
7528 Can also be used as a |method|: >
7535 Return the logarithm of Float {expr} to base 10 as a |Float|.
7543 Can also be used as a |method|: >
7551 argument accessible as _A inside first {expr}.
7552 Strings are returned as they are.
7557 as-is.
7558 Other objects are returned as zero without any errors.
7563 Can also be used as a |method|: >
7588 used as an expression again. Often it is good to use a
7618 Can also be used as a |method|: >
7654 "lhs" The {lhs} of the mapping as it would be typed
7655 "lhsraw" The {lhs} of the mapping as raw bytes
7656 "lhsrawalt" The {lhs} of the mapping as raw bytes, alternate
7658 "rhs" The {rhs} of the mapping as typed.
7685 < Can also be used as a |method|: >
7721 Can also be used as a |method|: >
7734 {mode} and {abbr} should be the same as for the call to
7750 first item where {pat} matches. Each item is used as a
7751 String, |Lists| and |Dictionaries| are used as echoed.
7753 Otherwise, {expr} is used as a String. The result is a
7810 Can also be used as a |method|: >
7829 A priority is specified as an integer (negative numbers are no
7840 is specified as a positive integer (zero excluded). IDs 1, 2
7856 The number of matches is not limited, as it is the case with
7869 Can also be used as a |method|: >
7874 Same as |matchadd()|, but requires a list of positions {pos}
7889 column is 1, the value must correspond to the byte index as
7906 Can also be used as a |method|: >
7910 Selects the {nr} match item, as set with a |:match|,
7921 Can also be used as a |method|: >
7932 Can also be used as a |method|: >
7936 Same as |match()|, but return the index of first character
7947 The {start}, if given, has the same meaning as for |match()|. >
7954 Can also be used as a |method|: >
7977 This should accept a dictionary item as the
7981 {str} is treated as a literal string and regular expression
8018 Same as |matchfuzzy()|, but returns the list of matched
8039 Same as |match()|, but return a |List|. The first item in the
8040 list is the matched string, same as what matchstr() would
8050 Can also be used as a |method|: >
8054 Same as |match()|, but return the matched string. Example: >
8058 The {start}, if given, has the same meaning as for |match()|. >
8066 Can also be used as a |method|: >
8070 Same as |matchstr()|, but return the matched string, the start
8075 The {start}, if given, has the same meaning as for |match()|. >
8087 Can also be used as a |method|: >
8098 items in {expr} cannot be used as a Number this results in
8101 Can also be used as a |method|: >
8175 Can also be used as a |method|: >
8186 items in {expr} cannot be used as a Number this results in
8189 Can also be used as a |method|: >
8196 If {path} is "p" then intermediate directories are created as
8221 < Can also be used as a |method|: >
8276 Can also be used as a |method|: >
8282 Numbers and strings are returned as they are.
8284 returned as Vim |Lists|.
8285 Hash tables are represented as Vim |Dictionary| type with keys
8297 Can also be used as a |method|: >
8311 Can also be used as a |method|: >
8332 Can also be used as a |method|: >
8340 < Can also be used as a |method|: >
8346 result. The tail, the file name, is kept as-is. The other
8357 Can also be used as a |method|: >
8363 converted, it is returned as a string Perl representation.
8373 Can also be used as a |method|: >
8383 Return the power of {x} to the exponent {y} as a |Float|.
8393 Can also be used as a |method|: >
8407 Can also be used as a |method|: >
8417 When used as a |method| the base is passed as the second
8434 %f floating point number as 12.23, inf, -inf or nan
8435 %F floating point number as 12.23, INF, -INF or NAN
8436 %e floating point number as 1.23e3, inf, -inf or nan
8437 %E floating point number as 1.23E3, INF, -INF or NAN
8438 %g floating point number, as %f or %e depending on value
8439 %G floating point number, as %F or %E depending on value
8497 string is omitted, the precision is taken as zero.
8511 negative field width is treated as a left adjustment flag
8513 treated as though it were missing. Example: >
8556 as ":echo".
8615 Can also be used as a |method|: >
8650 < Can also be used as a |method|: >
8662 as in any buffer.
8664 Can also be used as a |method|: >
8676 Can also be used as a |method|: >
8694 The values are the same as in |v:event| during
8706 Numbers and strings are returned as they are (strings are
8709 Lists are represented as Vim |List| type.
8710 Dictionaries are represented as Vim |Dictionary| type with
8715 Can also be used as a |method|: >
8724 Numbers and strings are returned as they are (strings are
8726 Lists are represented as Vim |List| type.
8727 Dictionaries are represented as Vim |Dictionary| type,
8732 Can also be used as a |method|: >
8743 Can also be used as a |method|: >
8783 Can also be used as a |method|: >
8797 things, such as limiting the number of matches.
8811 When {expr} is a function the name is passed as the argument.
8845 Can also be used as a |method|: >
8853 directory at the same time as getting a list of a directory.
8869 On Unix, almost same as |getftype()| except:
8896 When {expr} is a function the entry is passed as the argument.
8905 Can also be used as a |method|: >
8912 as an item. Lines are broken at NL characters. Macintosh
8932 are returned, or as many as there are.
8944 Can also be used as a |method|: >
8963 Can also be used as a |method|: >
8993 Can also be used as a |method|: >
9009 Can also be used as a |method|: >
9030 Can also be used as a |method|: >
9037 Send the {string} to {server}. The string is sent as an
9042 If {idvar} is present and not empty, it is taken as the name
9062 Can also be used as a |method|: >
9077 Can also be used as a |method|: >
9098 < Can also be used as a |method|: >
9111 < Can also be used as a |method|: >
9116 Send the {string} to {server}. The string is sent as input
9119 If {idvar} is present, it is taken as the name of a variable
9137 Can also be used as a |method|: >
9142 Become the server {name}. This fails if already running as a
9145 Can also be used as a |method|: >
9155 item as {end} a list with one item is returned. When {end}
9164 Can also be used as a |method|: >
9172 byte as {end} a |Blob| with one byte is returned. When {end}
9192 Can also be used as a |method|: >
9205 Can also be used as a |method|: >
9219 The simplification step is done as by |simplify()|.
9224 Can also be used as a |method|: >
9233 < Can also be used as a |method|: >
9238 as a |Float|. If {expr} lies halfway between two integral
9249 Can also be used as a |method|: >
9257 Numbers, floats and strings are returned as they are (strings
9259 Arrays are represented as Vim |List| type.
9260 Hashes are represented as Vim |Dictionary| type.
9261 Other objects are represented as strings resulted from their
9266 Can also be used as a |method|: >
9276 Can also be used as a |method|: >
9289 Can also be used as a |method|: >
9294 as what |screenchar()| returns. Further numbers are
9299 Can also be used as a |method|: >
9330 a Tab it would be the same as "endcol", while for a double
9331 width character it would be the same as "col".
9333 as if 'conceallevel' is zero. You can set the cursor to the
9337 Can also be used as a |method|: >
9346 Note: Same restrictions as with |screencol()|.
9356 Can also be used as a |method|: >
9417 {skip} can be a string, which is evaluated as an expression, a
9460 Can also be used as a |method|: >
9562 this works as same as the
9585 Can also be used as a |method|: >
9606 Can also be used as a |method|: >
9692 highlighting recognized as strings: >
9700 Same as |searchpair()|, but returns a |List| with the line and
9712 Same as |search()|, but returns a |List| with the line and
9726 Can also be used as a |method|: >
9742 < Can also be used as a |method|: >
9777 Can also be used as a |method|, the base is passed as the
9795 Can also be used as a |method|, the base is passed as the
9827 Same as |setpos()| but uses the specified column number as the
9837 Can also be used as a |method|: >
9860 Can also be used as a |method|: >
9878 Can also be used as a |method|: >
9883 Same as |cursor()| but uses the specified column number as the
9893 Can also be used as a |method|: >
9904 Can also be used as a |method|, the base is passed as the
9923 Can also be used as a |method|: >
9956 Can also be used as a |method|, the base is passed as the
9967 Otherwise, same as |setqflist()|.
9976 Can also be used as a |method|, the base is passed as the
9988 Can also be used as a |method|: >
10041 Can also be used as a |method|: >
10078 item will not be handled as an error line.
10085 Note that the list is not exactly the same as what
10116 then the last entry in the list is set as the
10118 items list of quickfix entries. Same as the {list}
10153 Can also be used as a |method|, the base is passed as the
10174 used as the width of the selection - if it is not specified
10176 in the longest line (counting a <Tab> as 1 character).
10205 without using the third argument to |getreg()| as without it
10206 newlines are represented as newlines AND Nul bytes are
10207 represented as newlines as well, see |NL-used-for-Nul|.
10213 < Can also be used as a |method|, the base is passed as the
10227 Can also be used as a |method|, the base is passed as the
10249 Can also be used as a |method|, the base is passed as the
10286 Can also be used as a |method|, the base is passed as the
10296 < Can also be used as a |method|, the base is passed as the
10304 Can also be used as a |method|: >
10310 Escape {string} for use as a shell command argument.
10323 items such as "!", "%", "#" and "<cword>" will be preceded by
10337 in the tail. That is because for fish "\" is used as an escape
10347 Can also be used as a |method|: >
10357 When there is one argument {col} this is used as column number
10362 Can also be used as a |method|: >
10369 Simplify the file name as much as possible without changing
10373 valid for the result as well. A trailing path separator is
10385 Can also be used as a |method|: >
10389 Return the sine of {expr}, measured in radians, as a |Float|.
10397 Can also be used as a |method|: >
10404 Return the hyperbolic sine of {expr} as a |Float| in the range
10413 Can also be used as a |method|: >
10421 used exclusive. And for a string the indexes are used as
10427 Can also be used as a |method|: >
10465 Funcrefs will be considered as being 0).
10469 digits will be used as the number they represent.
10476 items as argument and must return zero if they are equal, 1 or
10483 The sort is stable, items which compare equal (as number or as
10486 same order as they were originally.
10488 Can also be used as a |method|: >
10542 Can also be used as a |method|: >
10554 < Can also be used as a |method|: >
10570 Can also be used as a |method|: >
10584 Can also be used as a |method|: >
10612 Can also be used as a |method|: >
10637 Can also be used as a |method|: >
10663 Can also be used as a |method|: >
10667 Return the non-negative square root of Float {expr} as a
10678 Can also be used as a |method|: >
10736 same as when using a floating point number in an expression,
10751 Can also be used as a |method|: >
10764 When {utf8} is TRUE, always treat the String as UTF-8
10769 < Can also be used as a |method|: >
10780 a leading zero doesn't cause octal conversion to be used, as
10790 Can also be used as a |method|: >
10802 Can also be used as a |method|: >
10814 exist it is omitted and counted as one character. For
10819 Can also be used as a |method|: >
10849 Can also be used as a |method|: >
10859 matters for anything that's displayed differently, such as
10865 Can also be used as a |method|: >
10869 The result is a String, which is a formatted date and time, as
10887 < Can also be used as a |method|: >
10896 Can also be used as a |method|: >
10918 Can also be used as a |method|: >
10938 Can also be used as a |method|: >
10953 Can also be used as a |method|: >
10963 To count {start} as characters instead of bytes use
10979 Can also be used as a |method|: >
11006 Can also be used as a |method|: >
11030 Can also be used as a |method|: >
11038 < This displays a newline in register a as "^@" instead of
11041 Can also be used as a |method|: >
11046 String {string} occupies. A Tab character is counted as one
11052 Can also be used as a |method|: >
11079 A line break is included as a newline character.
11081 Can also be used as a |method|: >
11112 When {sub} starts with "\=", the remainder is interpreted as
11125 < Can also be used as a |method|: >
11147 Can also be used as a |method|: >
11157 Can also be used as a |method|: >
11196 the color, cterm: color number as a string,
11198 "bg" background color (as with "fg")
11201 "sp" special color for the GUI (as with "fg")
11203 "ul" underline color for cterm: number as a string
11221 Can also be used as a |method|: >
11231 Can also be used as a |method|: >
11280 Get the output of the shell command {expr} as a |String|. See
11281 |systemlist()| to get the output as a |List|.
11284 to a file and passed as stdin to the command. The string is
11285 written as-is, you need to take care of using the correct line
11339 Can also be used as a |method|: >
11344 Same as |system()|, but returns a |List| with lines (parts of
11346 is the same as |readfile()| will output with {binary} argument
11357 Can also be used as a |method|: >
11374 Can also be used as a |method|: >
11403 Can also be used as a |method|: >
11454 Can also be used as a |method|: >
11458 Return the tangent of {expr}, measured in radians, as a |Float|
11467 Can also be used as a |method|: >
11474 Return the hyperbolic tangent of {expr} as a |Float| in the
11483 Can also be used as a |method|: >
11559 Can also be used as a |method|: >
11577 Can also be used as a |method|: >
11615 Can also be used as a |method|: >
11626 Can also be used as a |method|: >
11643 Can also be used as a |method|: >
11651 Can also be used as a |method|: >
11668 Can also be used as a |method|: >
11672 Return {text} as a String where any character in {mask} is
11698 Can also be used as a |method|: >
11703 equal to {expr} as a |Float| (truncate towards zero).
11713 Can also be used as a |method|: >
11745 < Can also be used as a |method|: >
11769 Can also be used as a |method|: >
11794 "seq" Undo sequence number. Same as what appears in
11823 Can also be used as a |method|: >
11830 Can also be used as a |method|: >
11870 < Can also be used as a |method|: >
11883 < This enters the same Visual mode as before. It is also useful
11919 Can also be used as a |method|, the base is passed as the
11927 Can also be used as a |method|: >
11939 Can also be used as a |method|: >
11963 Can also be used as a |method|: >
11971 Can also be used as a |method|: >
11979 Can also be used as a |method|: >
11986 Can also be used as a |method|: >
11990 Return the screen position of window {nr} as a list with two
11998 Can also be used as a |method|: >
12004 using |:split| but having the same contents as window {nr}, and
12021 Can also be used as a |method|: >
12035 Can also be used as a |method|: >
12060 < Can also be used as a |method|: >
12093 Can also be used as a |method|: >
12131 < Can also be used as a |method|: >
12161 Can also be used as a |method|: >
12176 zero, as opposed to what getpos()
12202 Can also be used as a |method|: >
12208 the current buffer. This is the same info as provided by
12266 < Can also be used as a |method|: >
12276 Can also be used as a |method|: >
12529 A regexp pattern as explained at |pattern| is normally used to find a match in
12532 like it is one line. When it contains a "\n" character, this is not seen as a
12638 passed as "a:firstline" and "a:lastline". If [range]
12643 range, as is the case with all Ex commands.
12646 abort as soon as an error is detected.
12713 evaluated and returned as the result of the function.
12729 be used as "a:name" ("a:" for argument).
12734 as "a:1", "a:2", etc. "a:0" is set to the number of extra arguments (which
12736 that "a:1" is the same as "a:000[0]".
12739 However, if a composite type is used, such as |List| or |Dictionary| , you can
12769 cannot pass v:none as an ordinary value when an argument has a default
12782 but not the other way around. They must be prefixed with "a:", as with all
12833 are as specified with `:function`. Up to 20 arguments can be
12878 A function can also be called as part of evaluating an expression or when it
12879 is used as a method: >
12932 exactly, and the defined function must have the name exactly as it will be
12981 that in place of the expression, and re-interprets the whole as a variable
13112 < When the code does not exist yet it will be created as
13145 command as mentioned above.
13185 {endmarker}. The lines of text is used as a
13292 after setting the value. This is the same as locking
13322 the behavior is the same as |:let|.
13401 new command. For example, ":silent" is recognized as
13423 as long as {expr1} evaluates to non-zero.
13514 can be caught as if it were thrown by a |:throw|
13533 |:try| as the ":catch" are executed when an exception
13546 :catch " same as /.*/
13549 {pattern}, so long as it does not have a special
13567 :th[row] {expr1} The {expr1} is evaluated and thrown as an exception.
13640 :echom[sg] {expr1} .. Echo the expression(s) as a true message, saving the
13642 Spaces are placed between the arguments as with the
13652 :echomsg "It's a Zizzer Zazzer Zuzz, as you can plainly see."
13656 :echoe[rr] {expr1} .. Echo the expression(s) as an error message, saving the
13659 Spaces are placed between the arguments as with the
13661 the message is raised as an error exception instead
13689 command, since "|" is seen as part of the expression.
13694 of {expr1} as an Ex command.
13698 {expr1} is used as the processed command, command line
13744 a comment directly, because they see the '"' as the
13798 patterns specified as arguments to the ":catch" commands. The catch clause
13803 continues in the following line as usual.
13836 ":continue", ":return" or ":finish" is executed as usual. If the finally
13863 as usual.
13880 You can throw any number or string as an exception. Use the |:throw| command
13881 and pass the value to be thrown as argument: >
13915 Any other command that takes an expression as argument might also be
13931 command can be specified as a pattern argument. The subsequent catch clause
13970 exception most recently caught as long it is not finished.
14290 There could even be such errors you are not responsible for as a script
14433 Here, the ":write" command does not write the file currently being edited (as
14647 or ":endif". On the other hand, errors should be catchable as exceptions
14852 < This is the original Vim script, same as not using a |:scriptversion|
14866 work as |v:version| anymore, it can be used as a normal variable.
14867 Same for some obvious names as "count" and others.
14874 < Numbers with a leading zero are not recognized as octal. "0o" or "0O"
14875 is still recognized as octal. With the
14920 If you do not want to abort loading the script you can use a trick, as this
14968 option will still be marked as it was set in the sandbox.