aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMax Christian Pohle2016-11-05 22:14:01 +0100
committerMax Christian Pohle2016-11-05 22:14:01 +0100
commit4eaae3ff84995bce605f4c3553ad511a179d0c4b (patch)
tree7be7c81c73df5ab957340e71710b57b0bfe8d021 /doc
parent30b7055bf6ce68999059154058c2db74eb01a445 (diff)
downloadvim-4eaae3ff84995bce605f4c3553ad511a179d0c4b.tar.bz2
vim-4eaae3ff84995bce605f4c3553ad511a179d0c4b.zip
Added ikeymap: <leader><leader> for autosnipets
<leader><leader> lists all possible completions, <leader><tab> automatically inserts first snippet. This feature depends on the filetype (set ft). The filetype can have two values simultaneously, in which case the separator is a dot, like in html.django or html.css.
Diffstat (limited to 'doc')
-rw-r--r--doc/shortcuts.txt21
1 files changed, 17 insertions, 4 deletions
diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt
index daf9003..79d3027 100644
--- a/doc/shortcuts.txt
+++ b/doc/shortcuts.txt
@@ -10,6 +10,18 @@ gf = open file under cursor
10<C-w>] = jump to the tag under the cursor in a new window 10<C-w>] = jump to the tag under the cursor in a new window
11<C-t> = jump back from where that ^ brought you 11<C-t> = jump back from where that ^ brought you
12K = keyword lookup for the word under the cursor (see :help kp) 12K = keyword lookup for the word under the cursor (see :help kp)
13w = next word
14e = end of word (=inner word)
15
16
17@see: :h text-objects
18ci' = change between single quote
19ci" = change between double quote
20ci( = change between brace
21cit = change XML Tag
22ciw = select inner word
23caw = select 'a word'
24" where c can be replaced by v for visual mode
13 25
14 26
15 27
@@ -67,9 +79,6 @@ zR = opens all folds (unfold all)
67zE = eliminates all folds 79zE = eliminates all folds
68z= = show spellcheck suggestions 80z= = show spellcheck suggestions
69 81
70[vim modeline]
71the last line can be a mode line, which holds settings like tab width:
72
73 82
74[buffers] 83[buffers]
75:bn = buffer next 84:bn = buffer next
@@ -89,5 +98,9 @@ gn = makes the directory under the cursor the root directory
89a = toggles display of hidden files 98a = toggles display of hidden files
90 99
91 100
101[vim modeline]
102filetype can have multiple values, like python.django
103The last line can be a mode line, which holds settings like tab width:
104
92 105
93# vim: noai:ts=2:sw=2 filetype=dosini 106# vim: noai:ts=2:sw=2 filetype=dosini.text
..