Miscellaneous edit commands
The following edit commands are used commonly.
Item | Description |
---|---|
[Count]yMotion | |
y[Count]Motion | Yanks the current character up to and including the character marked by the cursor position specified by the Motion parameter and puts all of these characters into the delete buffer. The text and cursor are unchanged. |
Y | Yanks from the current position to the end of the line. Equivalent to the y$ command. |
u | Undoes the last text-modifying command. |
U | Undoes all the text-modifying commands performed on the line. |
[Count]v | Returns the command fc -e ${VISUAL:-${EDITOR:-vi}} Count in
the input buffer. If the Count parameter is omitted,
then the current line is used. |
Ctrl-L | Line feeds and prints the current line. This command is effective only in control mode. |
Ctrl-J | (New line) Executes the current line regardless of the mode. |
Ctrl-M | (Return) Executes the current line regardless of the mode. |
# | Sends the line after inserting a pound sign (# )
in front of the line. Useful if you want to insert the current line
in the history without executing it. If the command line contains
a pipe or semicolon or newline character, then additional pound signs
( |
= | Lists the file names that match the current word as if an asterisk were appended to it. |
@Letter | Searches the alias list for an alias named _Letter. If an alias of this name is defined, its value is placed into the input queue for processing. |