Lines Matching refs:command
61 where the map command applies. The result, including
65 because space is a valid Normal mode command.
80 where the map command applies. Disallow mapping of
82 used to redefine a command.
97 map command applies. The mapping may remain defined
116 command applies.
133 command applies. Note that ":map" and ":map!" are
148 with {lhs} in the modes where the map command applies.
151 characters. You can use this to put command sequences under function keys,
171 command, before any other arguments.
204 To define a mapping which will not be echoed on the command line, add
208 the executed command are still given though. To shut them up too, add a
209 ":silent" in the executed command: >
213 the command line to fail.
229 "<script>" overrules the command name. Using ":noremap <script>" is
234 define a new mapping or abbreviation, the command will fail if the mapping or
272 typeahead, before the previous command has been executed. For example: >
286 obtaining characters, you may very well make the command dysfunctional.
290 - The |:normal| command.
326 The special text <Cmd> begins a "command mapping", it executes the command
341 command: it is executed as if an (unrestricted) |autocommand| was invoked.
348 - The command is not echo'ed, no need for <silent>.
351 - In Select mode, |:map| and |:vmap| command mappings are executed in
373 - For Command-line mode: When entering a ":" or "/" command.
375 Special case: While typing a count for a command in Normal mode, mapping zero
380 Overview of which map command works in which mode. More details below.
456 Operator-pending mappings can be used to define a movement command that can be
487 buffer, not a Vim command character. "Lang-Arg" isn't really another mode,
492 the CTRL-^ command |i_CTRL-^| |c_CTRL-^|. These commands change the value of
493 the 'iminsert' option. When starting to enter a normal command line (not a
497 command like "f" or "t".
532 The |:filter| command can be used to select what mappings to list. The
601 CTRL-C interrupts/breaks the command.
603 command to the clipboard. Use CTRL-Break to interrupt Vim.
686 use |", since this starts a new, empty command with a comment.
689 Since the '|' character is used to separate a map command from the next
690 command, you will have to do something special to include a '|' in {rhs}.
703 ending in a '\' and then another command. This is Vi compatible, but
707 When you have a mapping that contains an Ex command, you need to put a line
721 registers and marks, even when the command with the same name has been
732 <S-F2>, etc. Note that <F1> is already used for the help command.
737 - Use a key that is a synonym for another command. For example: CTRL-P and
744 a key is used for some command. ({key} is the specific key you want to find
826 This makes it possible to repeat a command an infinite number of times. The
833 will execute the "a" command and insert "bcd" in the text. The "ab" in the
837 command. For example: >
842 With the normal :map command, when the 'remap' option is on, mapping takes
852 If you include an undo command inside a mapped sequence, this will bring the
854 the original Vi, as long as there is only one undo command in the mapped
882 command. Bear in mind that not using an ESC prefix could get you in trouble
921 execute a shell command, e.g.: `!ls` Or put the lines in your |vimrc|.
946 An operator is used before a {motion} command. To define your own operator
948 invoke the |g@| operator. After the user types the {motion} command the
998 This also avoids using a command line, which would trigger CmdlineEnter and
1058 command. The non-keyword character which ends the abbreviation is inserted
1075 the command line "'<,'>" (or any other marks) is ignored, as if the
1076 command line starts after it.
1152 command-line abbreviations apply here.
1215 type the ":ab" command in Vim, you have to enter this: (here ^V is a CTRL-V
1222 and fourth ^Vs, and the ^[, to be entered into the command-line.
1226 The command-line contains two actual ^Vs before the ^[. This is
1229 command uses ^V as its own quote character, so you can include quoted
1230 whitespace or the | character in the abbreviation. The :ab command
1239 If you give the :ab command with no arguments, this is how the
1262 When executing the map command, Vim will replace "<SID>" with the special
1281 When executing an autocommand or a user command, it will run in the context of
1282 the script it was defined in. This makes it possible that the command calls a
1300 The |:scriptnames| command can be used to see which scripts have been sourced
1308 It is possible to define your own Ex commands. A user-defined command can act
1309 just like a built-in command (it can have a range or arguments, arguments can
1310 be completed as filenames or buffer names, etc), except that when the command
1311 is executed, it is transformed into a normal Ex command and then executed.
1320 They cannot be used for a user defined command. ":Print" is also an existing
1321 command, but it is deprecated and can be overruled.
1323 The other characters of the user command can be uppercase letters, lowercase
1325 numeric argument may become ambiguous. For example, the command ":Cc2" could
1326 be the user command ":Cc2" without an argument, or the command ":Cc" with
1327 argument "2". It is advised to put a space between the command name and the
1330 When using a user-defined command, the command can be abbreviated. However, if
1332 built-in command will always take precedence.
1335 :command Rename ...
1336 :command Renumber ...
1340 :command Paste ...
1346 :com[mand] *:com* *:command*
1354 The list can be filtered on command name with
1357 filter Pyth command
1361 *:command-verbose*
1362 When 'verbose' is non-zero, listing a command will also display where it was
1365 :verbose command TOhtml
1374 Define a user command. The name of the command is
1376 command's attributes (see below) are {attr}. If the
1377 command already exists, an error is reported, unless a
1378 ! is specified, in which case the command is
1380 script again, a command that was previously defined in
1385 Delete the user-defined command {cmd}.
1388 Delete the user-defined command {cmd} that was defined
1400 command's attributes, which are specified when the command is defined.
1408 *E175* *E176* *:command-nargs*
1409 By default, a user defined command will take no arguments (and an error is
1411 command can take arguments, using the -nargs attribute. Valid cases are:
1425 "s:var" will use the script-local variable in the script where the command was
1429 :command -nargs=1 Error echoerr <args>
1439 *:command-completion* *E179* *E180* *E181*
1440 *:command-complete*
1450 -complete=command Ex command (and arguments)
1471 -complete=shellcmd Shell command
1486 *:command-completion-custom*
1487 *:command-completion-customlist* *E467* *E468*
1506 CmdLine the entire command line
1515 The following example lists user names to a Finger command >
1533 *E177* *E178* *:command-range* *:command-count*
1535 it is possible to specify that the command does take a range (the -range
1537 number position (-range=N, like the |:split| command) or as a "count"
1538 argument (-count=N, like the |:Next| command). The count will then be
1555 *:command-addr*
1574 *:command-bang* *:command-bar*
1575 *:command-register* *:command-buffer*
1576 *:command-keepscript*
1579 -bang The command can take a ! modifier (like :q or :w)
1580 -bar The command can be followed by a "|" and another command.
1581 A "|" inside the command argument is not allowed then.
1583 -register The first argument to the command can be an optional
1585 -buffer The command will only be available in the current buffer.
1586 -keepscript Do not use the location of where the user command was
1588 the user command was invoked.
1598 *:command-repl*
1603 :command MyCommand {
1611 another command.
1613 The replacement text {repl} for a user defined command is scanned for special
1615 values from the entered command line, and all other text is copied unchanged.
1616 The resulting string is executed as an Ex command. To avoid the replacement
1623 <line1> The starting line of the command range.
1625 <line2> The final line of the command range.
1627 <range> The number of items in the command range: 0, 1 or 2
1633 command was executed with a ! modifier, otherwise
1635 *<mods>* *<q-mods>* *:command-modifiers*
1636 <mods> The command modifiers, if specified. Otherwise, expands to
1645 command! -nargs=+ -complete=file MyEdit
1655 command! -nargs=+ -complete=file Sedit
1663 <args> The command arguments, exactly as supplied (but as
1678 is a special form <f-args> ("function args"). This splits the command
1687 command <f-args> ~
1724 :function Allargs(command)
1729 : execute a:command
1734 :command -nargs=+ -complete=command Allargs call Allargs(<q-args>)
1736 The command Allargs takes any Vim command(s) as argument and executes it on all
1738 errors and the "update" command to write modified buffers): >
1743 If the command is defined in Vim9 script (a script that starts with
1745 script. Thus this depends on where the command is defined, not where it is
1748 When defining a user command in a script, it will be able to call functions
1750 invokes the user command, it will run in the context of the script it was
1751 defined in. This matters if |<SID>| is used in a command.