Show Menu
Cheatography

VIM-BOOTSTRAP Cheat Sheet (DRAFT) by

A cheat sheet based on VIM-BOOTSTRAP keybinds

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basic Movement

j
Up
k
Down
h
Left
l
Up
w
Next word
W
Next word after whitespace
b
Previous word
B
Previous word before whitespace
1G
Goto begining of file
0 (zero) or ^
Go to begin of line
$
Go to end of line
H
move cursor to the top of current window
M
move cursor to the middle of current window
L
move cursor to the bottom of current window
ctrl+b
scroll page up
ctrl+t
scroll page down
zt
scroll current line to the top of window
zb
scroll current line to the botton of window

Copy-Paste

P
paste after cursor
p
paste before cursor
^+R n
Paste content of register n (number)
v
Enter in visual mode (mark text)
y
copy selected text
?
Search ignoring slash ???

Enter in insert mode

i
Insert in current position
a
Insert in next position
A
Insert in the end of line
o
Create a new line bellow this line
O
Create a new line above this line
 

Window and buffer navigation

,w or ,x
Next Buffer
,q or ,z
Previous Buffer
,c
Close buffer

C Special Function

ctrl+space s
Find reference to tag in CScope
ctrl+]
Go to definition
ctrl+t
Back from ctrl+]
%
Go to matching brace

Window Manipu­lation

^+w v
Split vertical (side)
^+w s
split horizontal (down)
^+w q
close current window
^+w =
Resize windows to same size

Identation

>> (nomal mode) | ctrl+T (edit mode)
Indent
<< (nomal mode) | ctrl+D (edit mode)
unindent
==
Fix current line identation
gg=G
Fix entire file identation
 

Develo­pment tools

ctrl+n
autoco­mpl­etion suggestion

Folding

zM
Fold all
zR
Unfold all
zc
Fold
zo
Unfold