0 move to beginning of the current line (this is the number zero) $ move to end of line H move to the top of the current window (high) M move to the middle of the current window (middle) L move to the bottom line of the current window (low) 1G move to the first line of the...
a series of shell commands, or a program. Thevieditor copies the file to be edited into a buffer (an area temporarily set aside in memory), displays as much of the buffer as possible on the screen, and lets you add, delete, and move text. When you save your edits,vicopies the buff...
beginning-of-line (C-a) Move to the start of the current line. end-of-line (C-e) Move to the end of the line. forward-char (C-f) Move forward a character. backward-char (C-b) Move back a character. forward-word (M-f) Move forward to the end of the next word. Words are ...
BackwardKillLine BackwardKillWord BackwardWord BeginningOfHistory BeginningOfLine CancelLine CaptureScreen CharacterSearch CharacterSearchBackward ClearHistory ClearKillRing ClearScreen Complete Copy CopyOrCancelLine Cut Delete DeleteChar DeleteCharOrExit DeleteEndOfWord Dele...
To delete a word, move the cursor to the first letter of the word, and type dw This command deletes the word and the space following it. To delete three words type 3dw Deleting Lines To delete a whole line, type dd The cursor does not have to be at the beginning of the line. Ty...
shiftwidth (sw=)Sets the distance for the software tab stops used by theautoindentoption, the shift commands( >and< ), and the text input commands ( theCtrl-Dand Ctrl-T key sequences). This vi option only affects the indentation at the beginning of a line. The default issw=8. ...
shiftwidth (sw=)Sets the distance for the software tab stops used by theautoindentoption, the shift commands( >and< ), and the text input commands ( theCtrl-Dand Ctrl-T key sequences). This vi option only affects the indentation at the beginning of a line. The default issw=8. ...
Move The Cursor l or Right Arrow Right one character. h or Left Arrow Left one character j or Down Arrow Down one line k or Up Arrow Up one line 0 (zero) To the beginning of the current line. ^ To the first non-whitespace character on the current line. $ To the end of the cur...
now move your cursor to the a long line and press Shift + 4 You will see your cursor jump to the end of the line, cool right! To move the cursor to the beginning of the line, you may press 0 (numeric zero). Related posts: ...
Commands beginning with a colon (:), however, do require that you press Return after the command. Some discussions of the vi editor refer to commands that are preceded with a colon as a third, and uniquely separate mode of vi, last-line mode. This mode is so named because when you ...