From 42cd5e784b07e22538ddd6881a618bbf5be8e2a9 Mon Sep 17 00:00:00 2001 From: Randy8080 Date: Tue, 9 Feb 2021 10:36:34 +0800 Subject: [PATCH] Updated vim.md --- vim.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/vim.md b/vim.md index 5f069ab..5596526 100644 --- a/vim.md +++ b/vim.md @@ -120,17 +120,18 @@ G gg H M L k j ▶ print("to") ### Saving and Exiting -| Shortcut | Description | -|---------------------------|---------------------------------| -| `:w` | Save | -| `:q` | Close file | -| `:wqa` | Save and quit on all tabs | -| `:wq` _\|_ `:x` _\|_ `ZZ` | Save and close file | -| `:q!` _\|_ `ZQ` | Close file, ignore changes | -| `:qa` | Close all files | -| `:qa!` | Close all files, ignore changes | -| `:w new.txt` | Save as `new.txt` | -| `:w !sudo tee %` | Write file readonly | +| Shortcut | Description | +|---------------------------|----------------------------| +| `:w` | Save | +| `:q` | Close file | +| `:wq` _\|_ `:x` _\|_ `ZZ` | Save and quit | +| `:wqa` | Save and quit all files | +| `:q!` _\|_ `ZQ` | Force quit | +| `:qa` | Close all files | +| `:qa!` | Force quit all files | +| `:w new.txt` | Save as `new.txt` | +| `:sav new.txt` | Write and switch to `new.txt` | +| `:w !sudo tee %` | Write file readonly | {.shortcuts}