Tmux+Vim

Vim

Move

h: Left
j: Down
k: Up
l: Right

w: Next word
b: Past word
e: Next word (end position)

%: Goto begin/end of ([{}])
0: Goto begin line
$: Goto end line
gg: Start file
G: End file
<num>G: Goto line <num>

Edit

i: insert before
a: insert after
A: insert to EOL
o: insert new line down
O: insert new line up

Delete (Cut)

dw: Word
dd: Line
cw: Delete word, from cursor
ciw: Delete all word (inner word)
d$: Delete until EOL

Clipboard

v: select characters
V: select lines
<CRTL>+v: Select columns
d: Cut
y: Copy
P: Paste before
p: Paste after
u: undo
<CRTL>+r: redo
gf: Goto file definition (code imports section)
<CRTL>+o: history back
<CRTL>+i: history forward

gd: Show usages

Commands

:<command>
q: Close/Exit
w: Save
/pattern + <ENTER> + n: Find forward
s/pattern1/pattern2: Substitute first in line
s/pattern1/pattern2/g: Substitute all in line
%s/pattern1/pattern2/g: Substitute all in file (gc item by item)

Patterns

dd + [p|P]: Move line up or down