-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
350bc3f
commit 5bfa649
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Vim | ||
|
||
Vim is a popular text editor used in the command line interface: | ||
|
||
- `i`: Switch to insert mode, allowing you to insert text. | ||
- `Esc`: Exit insert mode and return to command mode. | ||
- `:w`: Write the current file to disk. | ||
- `:q`: Quit Vim. | ||
- `:q!`: Quit Vim without saving changes. | ||
- `:wq`: Write the current file to disk and quit Vim. | ||
- `yy`: Copy the current line. | ||
- `p`: Paste the copied line. | ||
- `dd`: Delete the current line. | ||
- `u`: Undo the last change. | ||
- `Ctrl + r`: Redo the last change. | ||
- `/search_term`: Search for a specific term in the file. | ||
- `:s/old_text/new_text/g`: Replace all occurrences of 'old_text' with 'new_text' globally in the file. |