Cheatography
https://cheatography.com
VISUAL
Sort Lines |
<Leader> s |
Indent / Unident |
< and > |
Split paragraph |
Q |
NORMAL MODE
Append a space. |
<space> |
Find word under cursor |
* or # |
Toggle Spell checking |
<Leader> 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 |
<Leader> 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 parenthesis |
i( |
inner paragraph |
ip |
a sentence |
as |
|
target |
until <character> (including) |
f <character> |
until <character> (excluding) |
t <character> |
until <search> |
/ <search> |
|
screen based(don't move cursor) |
move cursor Hight/Middle/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> |
AUTOCMD
VimEnter |
BufWritePre |
*.txt | *.js | *.py | *.wiki | *.sh | *.coffee |
CleanExtraSpace |
BufNewFile |
*.py | *.rb |
Shebang |
|
*.py |
SemanticHighlight |
BufEnter |
*.py |
SemanticHighlight |
|
|
Basic
VIM |
Auto Indent |
|
= |
|
RANGER |
open Ranger |
|
<Leader> r |
BUFFERS |
Cycle |
|
<Tab> and <S-Tab> |
Close current buffer |
|
bc |
NERDTree |
toggle NERDTree |
|
" |
Open in HSplit |
<on file> |
i |
Open in VSplit |
<on file> |
s |
Recursively open |
<on folder> |
O |
Show Menu |
|
m |
Python
Jedi |
Usages |
<Leader> 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 highlighted word |
:RangerChooser |
Open ranger |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets