Cheatography
https://cheatography.com
My vim cheat sheet. Commonly used ones.
Navigating
:vsplit other-file.txt |
open new file in another vertical split window |
:split other-file.txt |
open new file in another horizontally split window |
CTRL+w |
move current cursor to the next opened split window |
gg |
move to the begining of file |
SHIFT+g |
move to the bottom of file |
w |
move one word to the right |
b |
move one word backward to the left |
:help |
show main help file |
:help 'cm' |
show help file for cryptmethod |
:help set |
show help file for set |
|
|
Saving
:w |
save changes |
:q! |
quit and override |
:setlocal cm=blowfish |
set crypt method to blowfish |
:X |
encrypt file |
:X key= |
remove encryption |
Editing Environment
:set number |
enable line numbers |
:set colorcolumn=100 |
create a ruler guide at column 100 |
:syntax off |
turn off syntax highlighting |
:set tabstop=4 |
configure tab spacing |
:set shiftwidth=4 |
configure tab spacing |
:set expandtab |
configure tab spacing |
|
|
References
vim author website |
|
markdown plugin website |
|
vim plugins |
|
|
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by edendekker