Show Menu
Cheatography

VIM Cheat Sheet Cheat Sheet by

My vim cheat sheet. Commonly used ones.

Navigating

:vsplit other-­fil­e.txt
open new file in another vertical split window
:split other-­fil­e.txt
open new file in another horizo­ntally 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 cryptm­ethod
:help set
show help file for set
 

Saving

:w
save changes
:q!
quit and override
:setlocal cm=blo­wfish
set crypt method to blowfish
:X
encrypt file
:X key=
remove encryption

Editing Enviro­nment

:set number
enable line numbers
:set colorc­olu­mn=100
create a ruler guide at column 100
:syntax off
turn off syntax highli­ghting
:set tabstop=4
configure tab spacing
:set shiftw­idth=4
configure tab spacing
:set expandtab
configure tab spacing
 

References

 

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

          More Cheat Sheets by edendekker

          Apache Cassandra CQL Cheat Sheet
          Jenkins CLI Cheat Sheet