summaryrefslogtreecommitdiffstats
path: root/vim/usage
blob: 17a465a3a3a866ba451595a531e558980e91778f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
== Common ==
F4  - toggle copy&paste
F5  - reset search
F6  - build / make pdf
F10 - open pdf in evince

== Copy/Paste ==
y - yank (copy selected text)
p - paste

"0p - paste after delete

== Misc ==
C-A   - increment next number
C-X   - decrement next number

== Windows ==
C-W N - vertical new window
C-W V - horizontal new window
C-W S - new view
C-W R - change window order

C-W H - window left
C-W J - window down
C-W K - window up
C-W L - window right

C-W S-H - move window left
C-W S-J - move window down
C-W S-K - move window up
C-W S-L - move window right

== Tabs ==
:tabnew foo.txt		- open foo.txt in a new tab
gt					- next tab
<NUM>gt				- got to tab <NUM>

== Code Folding ==
zo	- open code fold
zc	- close code fold
zO	- open code fold recusive
zC	- close code fold recursive
zR	- open all code folds
zM	- close all code folds

=== Text Wrapping ===
gqG  - wrap complete text
gqap - wrap paragraph

=== Printing ===
:hardcopy

=== Spelling ===
:set spell    - enable spelling correction
:set nospell  - disable spelling correction
]s            - next mispelled word
[s            - prev mispelled word
<num> zg      - add word to dictionary <num>
<num> zug     - remove word to dictionary <num>
z=            - show suggestions

1 = en
2 = de
3 = names

=== Indention ===
>> or C-T     - add indention
<< or C-D     - remove indention