Show Menu
Cheatography

Vim tips Cheat Sheet by

Tips for Vim

Formatting

guu
lower case line
gUU
upper case line
gw[u/U]
uppper­/lower case a word (

Pasting

:reg
show registers values
"2p
paste from register 2
:r! ls
paste result from command (ls)
:%!sort -u
sort file
'<,­'>! sort -u
sort selected lines
:ls
buffer list
:normal {command}
execute command as if it where typed in normal mode
 

Misc Comands

<Ct­rl-­A><­Ctr­l-X>
Increm­ent­/De­crement a number
<Ct­rl-­R>=5*5
Inserts 25
<Ct­rl-­X><­Ctr­l-F>
insert a filename from current dir

Movement

'.
Jump to last modified line

User interface

:set number!
toggle between show/hide numbers
 

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