diff options
author | Max Christian Pohle | 2015-09-13 21:54:53 +0200 |
---|---|---|
committer | Max Christian Pohle | 2015-09-13 21:54:53 +0200 |
commit | 81571661d0c39e7261d1a55ff641e56970defff0 (patch) | |
tree | c57fc0e343ac1ff46ee9d8671256e544432cac65 /doc | |
parent | d1f054ef1a601b81054f74e18520a2bc8075c3d8 (diff) | |
download | vim-karlmarks-81571661d0c39e7261d1a55ff641e56970defff0.tar.bz2 vim-karlmarks-81571661d0c39e7261d1a55ff641e56970defff0.zip |
vimdiff shortcuts added and support for CTRL+Shift+LeftArrow...
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 | ||