|
j
|
Move cursor down
|
|
k
|
Move cursor up
|
|
h
|
Move cursor left
|
|
l
|
Move cursor right
|
|
e
|
To end of word
|
|
b
|
To beginning of word
|
|
w
|
To beginning of next word
|
|
^
|
To the first non-whitespace character of a line
|
|
$
|
To the end of a line
|
|
H
|
To the first line of the screen
|
|
M
|
To the middle line of the screen
|
|
L
|
To the the last line of the screen
|
space |
Center current line in screen
|
|
Ctrl^d
|
Page down
|
|
Ctrl^u
|
Page up
|
|
Ctrl^o
|
Previous position
|
|
Ctrl^i
|
Forward position
|
|
G
|
End of file
|
|
g,
|
Previous edit
|
|
g;
|
Next edit
|
|
sab
|
Search for ab in screen
|
|
/abcd
|
Search for abcd in file
|
<leader>j |
Jump to a line below
|
<leader>k |
Jump to a line above
|
<leader>h |
Jump behind of cursor
|
<leader>l |
Jump forward of cursor
|
|
n
|
Next result
|
|
N
|
Previous result
|
|
<TAB>
|
Search on next screen
|
|
cl
|
console.log("stuff");
|
|
fun
|
function function_name(arg...
|
|
re
|
var fs = require('fs');
|
|
if
|
if(true) ...
|
|
ife
|
if(true) ... else ...
|
|
for
|
for(var i....)
|
|
ford
|
for(var prop in obj) ...
|
|
f
|
function() { ... }
|
|
ter
|
<cond> ? true : false;
|
|
ret
|
return result;
|
|
s
|
"key": "value",
|
|
a
|
[ ],
|
|
o
|
{ },
|
|
<leader>pf
|
Previous function
|
|
<leader>nf
|
Next function
|
|
<leader>pc
|
Previous class
|
|
<leader>nc
|
Next class
|
|
<leader>c
|
Toggle comment selection
|
|
<leader>tg
|
Goto definition
|
|
<leader>tp
|
Definition in preview window
|
|
<leader>d
|
Goto variable definition
|
|
<leader>i
|
Insert ipdb line
|
|
<leader>u
|
Show undo tree
|
|
F13
|
NERDTree
|
|
F14
|
List buffers
|
|
F15
|
Taglist
|
|
F16
|
Close preview windows
|
|
F17
|
Previous buffer
|
|
F18
|
Next buffer
|
|
jk
|
ESC
|
|
<leader>a
|
Ack search
|
|
<leader>x
|
Toggle autoclose
|
|
<leader>v
|
Vertical split
|
|
<leader>s
|
Horisontal split
|
|
qa
|
Record into macro a
|
|
@a
|
Replay macro a
|
|
-
|
" (To access yank registers)
|
|
ciw
|
Change inside word
|
|
cab
|
Change around bracket
|
|
dtx
|
Delete till character x
|
|
cs’”
|
Change surround from ' to "
|
|
viwS”
|
Surround word with "
|
|
C^t
|
Increase line indent
|
|
C^d
|
Decrease line indent
|
|
C^ra
|
Insert from register a
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.