Skip to content

Commit

Permalink
vim
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshit087 committed Jul 30, 2023
1 parent 350bc3f commit 5bfa649
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mind-map-book/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
- [Merging](git/05_merging.md)
- [Github](git/05_github.md)

- [Vim](vim/README.md)

- [💉 SQL](sql/README.md)
- [Basics of MySQL](sql/01_basics.md)
- [Altering Tables](sql/02_altering_tables.md)
Expand Down
17 changes: 17 additions & 0 deletions mind-map-book/src/vim/README.md
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.

0 comments on commit 5bfa649

Please sign in to comment.