aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-12-21 12:45:25 +0100
committerMax Christian Pohle2017-12-21 12:45:25 +0100
commit58c47135b8ccb48c875854840e2e1ad3fab876b1 (patch)
tree325858a827d5909839467f219ef544dadad7fc20
parentfd9eff545079ce7279b52d38d150d6a09231b77e (diff)
downloadvim-58c47135b8ccb48c875854840e2e1ad3fab876b1.tar.bz2
vim-58c47135b8ccb48c875854840e2e1ad3fab876b1.zip
Added useful global command to shortcuts.txt
-rw-r--r--doc/shortcuts.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt
index 159f20a..d70855f 100644
--- a/doc/shortcuts.txt
+++ b/doc/shortcuts.txt
@@ -26,6 +26,7 @@ caw = select 'a word'
26:%s/foo/bar/g = replace all foo with bar 26:%s/foo/bar/g = replace all foo with bar
27:g/foo/s/bar//g = on lines with foo replace bar with nothing 27:g/foo/s/bar//g = on lines with foo replace bar with nothing
28:g!/foo/s/bar//g = on lines not containing foo replace bar with nothing 28:g!/foo/s/bar//g = on lines not containing foo replace bar with nothing
29:g!/^foo/execute("normal dd") delete lines starting with foo
29 30
30[visual mode] # with selected lines 31[visual mode] # with selected lines
31gq = formats text so that it fits in whatever :set textwidth was set 32gq = formats text so that it fits in whatever :set textwidth was set
..