From 307d2ef4d4d0174f749388fdd6396d8bc64d0f52 Mon Sep 17 00:00:00 2001
From: Max Christian Pohle
Date: Wed, 11 Oct 2017 20:10:49 +0200
Subject: Minor improvements, mostly from reading :help

---
 doc/shortcuts.txt | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

(limited to 'doc')

diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt
index a5c33ae..fdd28c8 100644
--- a/doc/shortcuts.txt
+++ b/doc/shortcuts.txt
@@ -23,8 +23,9 @@ ciw             = select inner word
 caw             = select 'a word'
 " where c can be replaced by v for visual mode
 
-
-
+:%s/foo/bar/g    = replace all foo with bar
+:g/foo/s/bar//g  = on lines with foo replace bar with nothing
+:g!/foo/s/bar//g = on lines not containing foo replace bar with nothing
 
 [visual mode]   # with selected lines
 gq              = formats text so that it fits in whatever :set textwidth was set
@@ -144,6 +145,14 @@ viB:sort       = sort inner block by name
 [fancy utf-8 symbols]
 ௵
 
+[debugging]
+:profile! start /tmp/profile.log
+:profile func *
+:profile file *
+" At this point do slow actions
+:profdel *
+:e /tmp/profile.log
+
 [vim modeline]
 filetype can have multiple values, like python.django
 The last line can be a mode line, which holds settings like tab width:
-- 
cgit v1.2.3