diff --git a/pages/common/vim.md b/pages/common/vim.md index 5fc98fce5..b7f4dd323 100644 --- a/pages/common/vim.md +++ b/pages/common/vim.md @@ -14,18 +14,22 @@ `view {{file}}` -- Exit vim: +- switch to normal mode -`[Esc] (to switch to normal mode), then :q` +`` + +- switch to insert mode + +` i ` + +- exit vim + +` :q ` - save file in vim -`[Esc] (to switch to normal mode), then :w` +` :w ` - save file then exit vim -`[Esc] (to switch to normal mode), then :wq` - -- switch to edit (insert) mode - -`[Esc] (to switch to normal mode), then i` +` :wq `