diff options
author | Max Christian Pohle | 2017-12-21 12:45:25 +0100 |
---|---|---|
committer | Max Christian Pohle | 2017-12-21 12:45:25 +0100 |
commit | 58c47135b8ccb48c875854840e2e1ad3fab876b1 (patch) | |
tree | 325858a827d5909839467f219ef544dadad7fc20 | |
parent | fd9eff545079ce7279b52d38d150d6a09231b77e (diff) | |
download | vim-58c47135b8ccb48c875854840e2e1ad3fab876b1.tar.bz2 vim-58c47135b8ccb48c875854840e2e1ad3fab876b1.zip |
Added useful global command to shortcuts.txt
-rw-r--r-- | doc/shortcuts.txt | 1 |
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 |
31 | gq = formats text so that it fits in whatever :set textwidth was set | 32 | gq = formats text so that it fits in whatever :set textwidth was set |