Show Menu
Cheatography

Custom Vim Keyboard Shortcuts by

VISUAL

Sort Lines
<Le­ade­r> s
Indent / Unident
< and >
Split paragraph
Q

NORMAL MODE

Append a space.
<sp­ace>
Find word under cursor
* or #
Toggle Spell checking
<Le­ade­r> ss
Disable search highlight
<C-­n>
Move to Split
<C-­h> Left
 
<C-­j> Bottom
 
<C-­k> Up
 
<C-­l> Right
Echo current file path
<Le­ade­r> p
Auto Indent
=
 
MOVEMENTS
 
basic
first line
gg
last line
G
first character in line
_
*last character in line"
$
 
nouns
word
w
back
b
sentence
s
line
j
 
objects
inner word
iw
inner tag (html)
it
inner quote
i"
inner parent­hesis
i(
inner paragraph
ip
a sentence
as
 
target
until <ch­ara­cte­r> (inclu­ding)
f <ch­ara­cte­r>
until <ch­ara­cte­r> (exclu­ding)
t <ch­ara­cte­r>
until <se­arc­h>
/ <se­arc­h>
 
screen based(don't move cursor)
move cursor Hight/­Mid­dle/Low
H or M or L
Center to the cursor
zz
Move the current line to top of the sceen
zt
Move the screen down one line
<C-­e>
Move the screen up one line
<C-­y>
 
bigger movements
Move all half screen Down
<C-­d>
Move all screen Up
<C-­u>
Move all screen Down
<C-­f>
Move all screen Up
<C-­b>

INSERT MODE

 

AUTOCMD

VimEnter
BufWri­tePre
*.txt | *.js | *.py | *.wiki | *.sh | *.coffee
CleanE­xtr­aSpace
BufNewFile
*.py | *.rb
Shebang
 
*.py
Semant­icH­igh­light
BufEnter
*.py
Semant­icH­igh­light
 

Basic

VIM
Auto Indent
 
=
 
RANGER
open Ranger
 
<Le­ade­r> r
BUFFERS
Cycle
 
<Ta­b> and <S-­Tab>
Close current buffer
 
bc
NERDTree
toggle NERDTree
 
"
Open in HSplit
<on file>
i
Open in VSplit
<on file>
s
Recurs­­ively open
<on folder>
O
Show Menu
 
m

Python

Jedi
Usages
<Le­ade­r> z
Help about element under cursor
 
<S-­k>

Folding

Close under cursor
zc ( zC - recursive)
Open under cursor
zo (zO - recursive)

Custom Commands

:Run
Save and execute current buffer in python
:Pip
Pip install the currently highli­ghted word
:Range­rCh­ooser
Open ranger
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.

          Related Cheat Sheets

          VI Editor Cheat Sheet
          Vim NERDTree Cheat Sheet
          Helix Keyboard Shortcuts