From 314a240945a8ebeff07c51042fed3a5139f6a72d Mon Sep 17 00:00:00 2001 From: shoeletz Date: Tue, 29 Dec 2015 12:09:30 -0500 Subject: [PATCH] vim: add :w, :wq, i --- pages/common/vim.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pages/common/vim.md b/pages/common/vim.md index 9baa4bee0e..ee1571262a 100644 --- a/pages/common/vim.md +++ b/pages/common/vim.md @@ -16,4 +16,16 @@ - Exit vim: -`[Esc] (to switch to normal mode), then :q` +`[Esc] (to switch to command mode), then :q` + +- save file in vim + +`[Esc] (to switch to command mode), then :w` + +- save file then exit vim + +`[Esc] (to switch to command mode), then :wq` + +- switch to edit (insert) mode + +`[Esc] (to switch to command mode), then i`