diff options
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/doc/shortcuts.txt | 8 |
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] |
2 | f{char} - move cursor to the character {char} | 2 | f{char} - move cursor to the character {char} |
3 | 3 | ||
4 | |||
4 | [visual mode] - with selected lines | 5 | [visual mode] - with selected lines |
5 | gq - formats text so that it fits in whatever :set textwidth was set | 6 | gq - 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] |
27 | ma - set marker a-z (a in this case) | 29 | ma - 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 | |||
39 | dp - put changes from current window into the other | 46 | dp - 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 | |||