docs: vim

This commit is contained in:
Ryan Yin
2024-01-18 15:02:12 +08:00
parent 0148834e15
commit fe73f73adb
2 changed files with 10 additions and 9 deletions

View File

@@ -48,14 +48,15 @@ I mainly use Zellij for terminal related operations, here is its terminal shortc
> <https://vimhelp.org/editing.txt.html>
| Action | |
| --------------------------------- | ------------------------------------------------ |
| Save selected text to a file | `:w filename` (Will show `:'<,'>w filename`) |
| Save and close the current buffer | `:wq` |
| Save all buffers | `:wa` |
| Save and close all buffers | `:wqa` |
| Edit a file | `:e filename`(or `:e <TAB>` to show a file list) |
| Browse the file list | `:Ex` or `:e .` |
| Action | |
| ----------------------------------- | ------------------------------------------------ |
| Save selected text to a file | `:w filename` (Will show `:'<,'>w filename`) |
| Save and close the current buffer | `:wq` |
| Save all buffers | `:wa` |
| Save and close all buffers | `:wqa` |
| Edit a file | `:e filename`(or `:e <TAB>` to show a file list) |
| Browse the file list | `:Ex` or `:e .` |
| Discard changes and reread the file | `:e!` |
### Motion

View File

@@ -62,7 +62,7 @@ just emacs-clean
- I use git command frequently, but doomemacs only autoupdates status of git diff / treemacs when using magit.
- I have to learn magit to avoid this issue...
- GitHub's orgmode support is not well, Markdown is better for GitHub.
- Use markdown for repo's README.md, and use orgmode for my personal notes and docs only.
- Use markdown for repo's README.md, and use orgmode for my personal notes and docs only.
## Cheetsheet