From 314a240945a8ebeff07c51042fed3a5139f6a72d Mon Sep 17 00:00:00 2001 From: shoeletz Date: Tue, 29 Dec 2015 12:09:30 -0500 Subject: [PATCH 1/5] 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` From 5adbb1fa34b3afe3b7aa8adde83d321bd07e5e1e Mon Sep 17 00:00:00 2001 From: shoeletz Date: Tue, 29 Dec 2015 21:24:21 -0500 Subject: [PATCH 2/5] Update vim.md --- pages/common/vim.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/vim.md b/pages/common/vim.md index ee1571262a..5fc98fce5e 100644 --- a/pages/common/vim.md +++ b/pages/common/vim.md @@ -16,16 +16,16 @@ - Exit vim: -`[Esc] (to switch to command mode), then :q` +`[Esc] (to switch to normal mode), then :q` - save file in vim -`[Esc] (to switch to command mode), then :w` +`[Esc] (to switch to normal mode), then :w` - save file then exit vim -`[Esc] (to switch to command mode), then :wq` +`[Esc] (to switch to normal mode), then :wq` - switch to edit (insert) mode -`[Esc] (to switch to command mode), then i` +`[Esc] (to switch to normal mode), then i` From abcdb8dee25f586a5744b1c196ef74732a68c203 Mon Sep 17 00:00:00 2001 From: shoeletz Date: Tue, 5 Jan 2016 17:07:51 -0500 Subject: [PATCH 3/5] reduced repetetiveness of descriptions --- pages/common/vim.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pages/common/vim.md b/pages/common/vim.md index 5fc98fce5e..b7f4dd3230 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 ` From 1f0970401fc01544e3c37ccdb35b3c62c0fe2444 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sat, 6 Aug 2016 14:29:34 +0100 Subject: [PATCH 4/5] vim.md: apply formatting conventions --- pages/common/vim.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/common/vim.md b/pages/common/vim.md index b7f4dd3230..0b2adff07b 100644 --- a/pages/common/vim.md +++ b/pages/common/vim.md @@ -14,22 +14,22 @@ `view {{file}}` -- switch to normal mode +- Switch to normal mode: `` -- switch to insert mode +- Switch to insert mode: ` i ` -- exit vim +- Exit vim: ` :q ` -- save file in vim +- Save file in vim: ` :w ` -- save file then exit vim +- Save file then exit vim: ` :wq ` From 4732cbbc934795de18f38af6464cedd27ab24d79 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Sat, 6 Aug 2016 14:34:25 +0100 Subject: [PATCH 5/5] vim.md: apply fix per code review comments --- pages/common/vim.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/vim.md b/pages/common/vim.md index 0b2adff07b..87d4805056 100644 --- a/pages/common/vim.md +++ b/pages/common/vim.md @@ -20,7 +20,7 @@ - Switch to insert mode: -` i ` +` i` - Exit vim: