mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-07-15 17:13:21 +02:00
docs: vim
This commit is contained in:
@@ -49,13 +49,14 @@ 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user