aboutsummaryrefslogtreecommitdiff
path: root/.vim/doc/shortcuts.txt
diff options
context:
space:
mode:
Diffstat (limited to '.vim/doc/shortcuts.txt')
-rw-r--r--.vim/doc/shortcuts.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/.vim/doc/shortcuts.txt b/.vim/doc/shortcuts.txt
index 6b88797..fe61034 100644
--- a/.vim/doc/shortcuts.txt
+++ b/.vim/doc/shortcuts.txt
@@ -1,6 +1,7 @@
1[normal mode] 1[normal mode]
2f{char} - move cursor to the character {char} 2f{char} - move cursor to the character {char}
3 3
4
4[visual mode] - with selected lines 5[visual mode] - with selected lines
5gq - formats text so that it fits in whatever :set textwidth was set 6gq - formats text so that it fits in whatever :set textwidth was set
6 7
@@ -23,10 +24,16 @@ q - stop macro recording
23@a - replay macro a 24@a - replay macro a
24:'<,'>normal @a - apply a to every line in the current selection 25:'<,'>normal @a - apply a to every line in the current selection
25 26
27
26[marker] 28[marker]
27ma - set marker a-z (a in this case) 29ma - set marker a-z (a in this case)
28'a - go to marker a 30'a - go to marker a
29 31
32
33[hotkeys]
34<C-A>, <C-X> - increment, decrement number under the cursor
35
36
30[windows] 37[windows]
31<C-W>v - splits buffer vertically (screen uses |) 38<C-W>v - splits buffer vertically (screen uses |)
32<C-W>s - splits buffer horizontally (same as screen) 39<C-W>s - splits buffer horizontally (same as screen)
@@ -39,3 +46,4 @@ do - get changes from other window into the current
39dp - put changes from current window into the other 46dp - put changes from current window into the other
40]c - jump to the next change 47]c - jump to the next change
41[c - jump to the prevous change 48[c - jump to the prevous change
49
..