Input Edit Commands By default the editor is in input mode. erase     (User defined erase character as defined by the stty command, usually ^H or #.)  Delete previous character. ^W        Delete the previous blank separated word. eof       As the first character of the line causes the shell to terminate unless the ignoreeof option is set.  Otherwise this character is ignored. lnext     (User defined literal next character as defined by the stty(1) or ^V if not defined.)  Removes the next character's editing features (if any). \         Escape the next erase or kill character. ^I tab    Attempts command or file name completion as described above and returns to input mode.  If a partial completion occurs, repeating this will behave as if = were entered from control mode.  If no match is found or entered after space, a tab is inserted. Motion Edit Commands These commands will move the cursor. [count]l  Cursor forward (right) one character. [count][C Cursor forward (right) one character. [count]w  Cursor forward one alpha-numeric word. [count]W  Cursor to the beginning of the next word that follows a blank. [count]e  Cursor to end of word. [count]E  Cursor to end of the current blank delimited word. [count]h  Cursor backward (left) one character. [count][D Cursor backward (left) one character. [count]b  Cursor backward one word. [count]B  Cursor to preceding blank separated word. [count]⎪  Cursor to column count. [count]fc Find the next character c in the current line. [count]Fc Find the previous character c in the current line. [count]tc Equivalent to f followed by h. [count]Tc Equivalent to F followed by l. [count];  Repeats count times, the last single character find command, f, F, t, or T. [count],  Reverses the last single character find command count times. 0         Cursor to start of line. ^         Cursor to start of line. [H        Cursor to first non-blank character in line. $         Cursor to end of line. [Y        Cursor to end of line. %         Moves to balancing (, ), {, }, [, or ].  If cursor is not on one of the above characters, the remainder of the line is searched for the first occurrence of one of the above characters first. Search Edit Commands These commands access your command history. [count]k  Fetch previous command.  Each time k is entered the previous command back in time is accessed. [count]-  Equivalent to k. [count][A If cursor is at the end of the line it is equivalent to / with string^set to the contents of the current line. Otherwise, it is equivalent to k. [count]j  Fetch next command.  Each time j is entered the next command forward in time is accessed. [count]+  Equivalent to j. [count][B Equivalent to j. [count]G  The command number count is fetched.  The default is the least recent history command. /string   Search backward through history for a previous command containing string.  String is terminated by a `RETURN' or `NEW LINE'.  If string is preceded by a ^, the matched line must begin with string.  If string is null, the previous string will be used. ?string   Same as / except that search will be in the forward direction. n         Search for next match of the last pattern to / or ? commands. N         Search for next match of the last pattern to / or ?, but in reverse direction. Text Modification Edit Commands These commands will modify the line. a         Enter input mode and enter text after the current character. A         Append text to the end of the line.  Equivalent to $a. [count]cmotion c[count]motion Delete current character through the character that motion would move the cursor to and enter input mode. If motion is c, the entire line will be deleted and input mode entered. C         Delete the current character through the end of line and enter input mode.  Equivalent to c$. S         Equivalent to cc. [count]s  Replace characters under the cursor in input mode. D         Delete the current character through the end of line. Equivalent to d$. [count]dmotion d[count]motion Delete current character through the character that motion would move to.  If motion is d , the entire line will be deleted. i         Enter input mode and insert text before the current character. I         Insert text before the beginning of the line. Equivalent to 0i. [count]P  Place the previous text modification before the cursor. [count]p  Place the previous text modification after the cursor. R         Enter input mode and replace characters on the screen with characters you type overlay fashion. [count]rc Replace the count character(s) starting at the current cursor position with c, and advance the cursor. [count]x  Delete current character. [count]X  Delete preceding character. [count].  Repeat the previous text modification command. [count]∼  Invert the case of the count character(s) starting at the current cursor position and advance the cursor. [count]_  Causes the count word of the previous command to be appended and input mode entered.  The last word is used if count is omitted. *         Causes an * to be appended to the current word and file name generation attempted.  If no match is found, it rings the bell.  Otherwise, the word is replaced by the matching pattern and input mode is entered. \         Command or file name completion as described above. Other Edit Commands Miscellaneous commands. [count]ymotion y[count]motion Yank current character through character that motion would move the cursor to and puts them into the delete buffer.  The text and cursor are unchanged. yy        Yanks the entire line. Y         Yanks from current position to end of line.  Equivalent to y$. u         Undo the last text modifying command. U         Undo all the text modifying commands performed on the line. [count]v  Returns the command hist -e ${VISUAL:-${EDITOR:-vi}} count in the input buffer.  If count is omitted, then the current line is used. ^L        Line feed and print current line.  Has effect only in control mode. ^J        (New line) Execute the current line, regardless of mode. ^M        (Return) Execute the current line, regardless of mode. #         If the first character of the command is a #, then this command deletes this # and each # that follows a newline.  Otherwise, sends the line after inserting a # in front of each line in the command.  Useful for causing the current line to be inserted in the history as a comment and uncommenting previously commented commands in the history file. [count]=  If count is not specified, it generates the list of matching commands or file names as described above. Otherwise, the word under the cursor is replaced by the count item from the most recently generated command or file list.  If the cursor is not on a word, it is inserted instead. @letter   Your alias list is searched for an alias by the name _letter and if an alias of this name is defined, its value will be inserted on the input queue for processing. ^V        Display version of the shell.