aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMax Christian Pohle2017-10-11 20:10:49 +0200
committerMax Christian Pohle2017-10-11 20:10:49 +0200
commit307d2ef4d4d0174f749388fdd6396d8bc64d0f52 (patch)
tree8490821c7374dd3de70f3314d896db9b7d5f1cbd /doc
parent73cf61bc33ace9b5c3f0eedaab5fa9a5b3f2e0a9 (diff)
downloadvim-307d2ef4d4d0174f749388fdd6396d8bc64d0f52.tar.bz2
vim-307d2ef4d4d0174f749388fdd6396d8bc64d0f52.zip
Minor improvements, mostly from reading :help
Diffstat (limited to 'doc')
-rw-r--r--doc/shortcuts.txt13
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
23caw = select 'a word' 23caw = 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
30gq = formats text so that it fits in whatever :set textwidth was set 31gq = 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]
148filetype can have multiple values, like python.django 157filetype can have multiple values, like python.django
149The last line can be a mode line, which holds settings like tab width: 158The last line can be a mode line, which holds settings like tab width:
..