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

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

Movement

'.
Jump to last modified line

User interface

:set number!
toggle between show/hide numbers

Help Us Go Positive!

We offset our carbon usage with Ecologi. Click the link below to help us!

We offset our carbon footprint via Ecologi
 

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
          cVim Keyboard Shortcuts