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