summaryrefslogtreecommitdiffstats
path: root/vim/usage
blob: 1cec10860e671ba9c20203ffe1c50e011325fc1a (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
== 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

== 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