diff options
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: |