mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-14 08:32:39 +02:00
docs: vim
This commit is contained in:
@@ -48,14 +48,15 @@ I mainly use Zellij for terminal related operations, here is its terminal shortc
|
|||||||
|
|
||||||
> <https://vimhelp.org/editing.txt.html>
|
> <https://vimhelp.org/editing.txt.html>
|
||||||
|
|
||||||
| Action | |
|
| Action | |
|
||||||
| --------------------------------- | ------------------------------------------------ |
|
| ----------------------------------- | ------------------------------------------------ |
|
||||||
| Save selected text to a file | `:w filename` (Will show `:'<,'>w filename`) |
|
| Save selected text to a file | `:w filename` (Will show `:'<,'>w filename`) |
|
||||||
| Save and close the current buffer | `:wq` |
|
| Save and close the current buffer | `:wq` |
|
||||||
| Save all buffers | `:wa` |
|
| Save all buffers | `:wa` |
|
||||||
| Save and close all buffers | `:wqa` |
|
| Save and close all buffers | `:wqa` |
|
||||||
| Edit a file | `:e filename`(or `:e <TAB>` to show a file list) |
|
| Edit a file | `:e filename`(or `:e <TAB>` to show a file list) |
|
||||||
| Browse the file list | `:Ex` or `:e .` |
|
| Browse the file list | `:Ex` or `:e .` |
|
||||||
|
| Discard changes and reread the file | `:e!` |
|
||||||
|
|
||||||
### Motion
|
### Motion
|
||||||
|
|
||||||
|
|||||||
@@ -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 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...
|
- I have to learn magit to avoid this issue...
|
||||||
- GitHub's orgmode support is not well, Markdown is better for GitHub.
|
- 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
|
## Cheetsheet
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user