diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/shortcuts.txt | 38 |
1 files changed, 30 insertions, 8 deletions
diff --git a/doc/shortcuts.txt b/doc/shortcuts.txt index 9f4325f..3b714bc 100644 --- a/doc/shortcuts.txt +++ b/doc/shortcuts.txt | |||
@@ -1,13 +1,35 @@ | |||
1 | |||
2 | [visual mode] - with selected lines | 1 | [visual mode] - with selected lines |
3 | gq - format text so that it fits in whatever :set textwidth was set | 2 | gq - formats text so that it fits in whatever :set textwidth was set |
3 | |||
4 | 4 | ||
5 | [commands] | 5 | [commands] |
6 | :spell [word] - adds a word to the current dictionary (no mistake any more) | 6 | :spell [word] - adds a word to the current dictionary (no mistake any more) |
7 | :set list - display non printable characters | 7 | :set list - display non printable characters |
8 | :retab - replaces tabs with spaces | 8 | :retab - replaces tabs with spaces |
9 | :set expandtab - in insert mode: replace tab with spaces | 9 | :set expandtab - in insert mode: replace tab with spaces |
10 | |||
10 | 11 | ||
11 | [navigation] | 12 | [navigation] |
12 | <CTRL-]> - go to tag under the cursor (help links as well) | 13 | <CTRL-]> - look up the tag under the cursor (help links as well) |
13 | <CTRL-T> - return back from tag under the cursor | 14 | <CTRL-T> - return back from tag under the cursor |
15 | |||
16 | |||
17 | [macros] - record and play back a series of vim commands | ||
18 | qa - start (q) macro recording in register a (can be anything) | ||
19 | q - stop macro recording | ||
20 | @a - replay macro a | ||
21 | :'<,'>normal @a - apply a to every line in the current selection | ||
22 | |||
23 | |||
24 | [windows] | ||
25 | <C-W>v - splits buffer vertically (screen uses |) | ||
26 | <C-W>s - splits buffer horizontally (same as screen) | ||
27 | <C-W>w - moves the cursor to the next window and back | ||
28 | <C-W>[dir] - moves the cursor in that direction (use hjkl or arrow keys) | ||
29 | |||
30 | |||
31 | [vimdiff] | ||
32 | do - get changes from other window into the current | ||
33 | dp - put changes from current window into the other | ||
34 | ]c - jump to the next change | ||
35 | [c - jump to the prevous change | ||