From 643781ed357163d878841be45d75b04911a4b537 Mon Sep 17 00:00:00 2001 From: MorganGeek Date: Mon, 13 Jul 2020 18:32:05 +0200 Subject: [PATCH] add vim cheatsheet --- cheat/vim.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cheat/vim.md b/cheat/vim.md index 015b2be..ceecf81 100644 --- a/cheat/vim.md +++ b/cheat/vim.md @@ -19,3 +19,11 @@ Finally type `:wq` to save and close the file. ### Indent the whole file in VIM ([src](https://stackoverflow.com/questions/506075/how-do-i-fix-the-indentation-of-an-entire-file-in-vi)) `gg=G` + +### Text selection ([Source](https://www.cs.swarthmore.edu/oldhelp/vim/selection.html)) +``` +V - selects entire lines +v - selects range of text +ctrl-v - selects columns +gv - reselect block +```