Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- the - enters the insertion mode at the point preceding where the cursor is placed.
- THE - Enters the insertion mode at the beginning of the line where the cursor is placed.
- to - Enters the insertion mode at the next point where the cursor is placed .
- TO - Enters the insertion mode at the end of the line where the cursor is placed.
- x, dl - Clears the character highlighted by the cursor.
- X - Deletes the character on the left of the cursor.
- w - Goes to the next word by placing the cursor on the first letter.
- b - Moves to the previous word by placing the cursor on the first letter.
- 0 - Moves the cursor to the first character of the line where it is located.
- $ - Moves the cursor to the last character of the line where it is located.
- r - Enables editing of a character. Once the cursor is placed on the character, type the command followed by the character that will replace the one highlighted by the cursor.
- R - Enables continuous editing of the sentence. Once you type this command, each new character typed on the keyboard will replace the one highlighted by the cursor.
- s - Deletes the character highlighted by the cursor and enters insert mode.
- S - Deletes the line where the cursor is located and enters insert mode
- ESC - Exits insert mode and returns to normal mode.
- u - It undoes the last action performed.
- Cr - It reruns the last action performed
- dd - It deletes the entire line where the cursor is located and places the cursor at the beginning of the previous line.
- dw -It deletes the word where the cursor is located and positions itself on the first character of the next word.
- d $ - It deletes what is beyond the cursor on the same line.
- cc - It deletes the line where the cursor is placed and goes into insert mode.
- cw - By positioning the cursor on the first letter of the word, the whole word is deleted, the insertion mode is finally enabled.
- cl - Deletes the character where the cursor is positioned and goes into insert mode.
- yy - Copies the line where the cursor is placed.
- yw - Copies the character where the cursor is placed.
- $ y - Copies the word from where the cursor is placed.
- p - Pastes to the position after the cursor
- P - Pastes to the position preceding the cursor
- or - Creates a new row below the one where the cursor is placed
- OR - Creates a new line above the one where the cursor is placed
- : w -Saves the written text
- : Q! , ZQ - Stops editing the document by closing Vim without saving
- : x,: wq, ZZ - Saves the changes and closes Vim.
- : help - Opens a window containing useful tips for using Vim.
- : help {argument} - Opens a window containing instructions and descriptions on the requested topic
- qz - Allows you to record macros. Once the recording has started, it is possible to enter text and / or type commands to be execute in series. When you are done recording your Macro (combination of instructions), type the command z. To run the recorded macro, type the @z command.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement