From fe73f73adb6b21e7266253c8849566609cae5586 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Thu, 18 Jan 2024 15:02:12 +0800 Subject: [PATCH] docs: vim --- home/base/desktop/editors/README.md | 17 +++++++++-------- home/base/desktop/editors/emacs/README.md | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/home/base/desktop/editors/README.md b/home/base/desktop/editors/README.md index e84218c3..7ae348ab 100644 --- a/home/base/desktop/editors/README.md +++ b/home/base/desktop/editors/README.md @@ -48,14 +48,15 @@ I mainly use Zellij for terminal related operations, here is its terminal shortc > -| 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 ` 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 ` to show a file list) | +| Browse the file list | `:Ex` or `:e .` | +| Discard changes and reread the file | `:e!` | ### Motion diff --git a/home/base/desktop/editors/emacs/README.md b/home/base/desktop/editors/emacs/README.md index 62951280..1b453d29 100644 --- a/home/base/desktop/editors/emacs/README.md +++ b/home/base/desktop/editors/emacs/README.md @@ -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