diff options
author | Max Christian Pohle | 2017-10-11 20:10:49 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-10-11 20:10:49 +0200 |
commit | 307d2ef4d4d0174f749388fdd6396d8bc64d0f52 (patch) | |
tree | 8490821c7374dd3de70f3314d896db9b7d5f1cbd /doc/shortcuts.txt | |
parent | 73cf61bc33ace9b5c3f0eedaab5fa9a5b3f2e0a9 (diff) | |
download | vim-karlmarks-307d2ef4d4d0174f749388fdd6396d8bc64d0f52.tar.bz2 vim-karlmarks-307d2ef4d4d0174f749388fdd6396d8bc64d0f52.zip |
Minor improvements, mostly from reading :help
Diffstat (limited to 'doc/shortcuts.txt')
-rw-r--r-- | doc/shortcuts.txt | 13 |
1 files changed, 11 insertions, 2 deletions
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 | |||
23 | caw = select 'a word' | 23 | caw = select 'a word' |
24 | " where c can be replaced by v for visual mode | 24 | " where c can be replaced by v for visual mode |
25 | 25 | ||
26 | 26 | :%s/foo/bar/g = replace all foo with bar | |
27 | 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 | 29 | ||
29 | [visual mode] # with selected lines | 30 | [visual mode] # with selected lines |
30 | gq = formats text so that it fits in whatever :set textwidth was set | 31 | gq = formats text so that it fits in whatever :set textwidth was set |
@@ -144,6 +145,14 @@ viB:sort = sort inner block by name | |||
144 | [fancy utf-8 symbols] | 145 | [fancy utf-8 symbols] |
145 | ௵ | 146 | ௵ |
146 | 147 | ||
148 | [debugging] | ||
149 | :profile! start /tmp/profile.log | ||
150 | :profile func * | ||
151 | :profile file * | ||
152 | " At this point do slow actions | ||
153 | :profdel * | ||
154 | :e /tmp/profile.log | ||
155 | |||
147 | [vim modeline] | 156 | [vim modeline] |
148 | filetype can have multiple values, like python.django | 157 | filetype can have multiple values, like python.django |
149 | The last line can be a mode line, which holds settings like tab width: | 158 | The last line can be a mode line, which holds settings like tab width: |