From d9acba7f14d8caebcfd8250a16d0f395e860bac3 Mon Sep 17 00:00:00 2001 From: Matthieu Keller Date: Mon, 2 Sep 2013 16:04:10 +0200 Subject: [PATCH] correct and add vim shortcuts --- cheatsheets/vim | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cheatsheets/vim b/cheatsheets/vim index 3b79d77..22b8bf5 100644 --- a/cheatsheets/vim +++ b/cheatsheets/vim @@ -1,8 +1,14 @@ -# Appending -a - drops vim into append mode -i - enters append mode without character skip +# Insertion +a - enters insertion mode, append after the cursor. +A - enters insertion mode, at the end of the line. +i - enters insertion mode, insert before the cursor. +I - enters insertion mode, at the beginning of the line. +o - enters insertion mode, creating a new line under the cursor. +O - enters insertion mode, creating a mew line above the cursor. +C - enters insertion mode, cut the end of the line. # File management :w - writes (saves) file +:x - writes (saves) file ans exit :q - quits -;q! - quits without saving changes +:q! - quits without saving changes