My vim cheat sheet. Commonly used ones.
|
: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
|
|
:w
|
save changes
|
|
:q!
|
quit and override
|
|
:setlocal cm=blowfish
|
set crypt method to blowfish
|
|
:X
|
encrypt file
|
|
:X key=
|
remove encryption
|
|
: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
|
|
vim author website
|
|
|
markdown plugin website
|
|
|
vim plugins
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.