Professional Documents
Culture Documents
Function
Inserts text before the current character
Inserts text at the beginning of the current line
Appends text after the current character
Appends text at the end of the current line
Opens an empty text line for new text after the current line
Opens an empty text line for new text before the current line
Function
Moves the cursor one character to the left
Moves the cursor one character to the right
Moves the Cursor to the beginning of the current line
Moves the cursor to the end of the current line
Moves the cursor one line up
Moves the cursor one line down
Moves the cursor to the beginning of the previous line
Moves the cursor to the beginning of the next line.
Function
Deletes the Current Character
Deletes the Current Line
Delete Character(x)
Current character pointed by the cursor will be deleted
Delete Line (dd)
It Delete the current line.
Join Command(j)
Two lines can be combined using the join command
Scrolling Commands:
Unix window is 24 lines long, when we are dealing with document longer than 24
lines we need to scroll through the buffer to see the text.
Scroll down means moving down in the text toward the end of the file
Scroll up means moving the text up.
Command
Ctrl + y
Ctrl + e
Ctrl + u
Ctrl + d
Ctrl + b
Ctrl + f
Function
Scrolls up one line
Scrolls down one line
Scrolls up half a screen (12 lines)
Scrolls down half a screen (12 lines)
Scrolls up whole screen(24 lines)
Scrolls down whole screen (24 lines)
Undo Commands
Command
u
U
Function
Undoes only the last edit
Undoes all changes on the current line
Function
:w
:w filename
ZZ
:wq
:q
:q!