Show Menu

Vim tips Cheat Sheet by

Tips for Vim
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

Download the Vim tips Cheat Sheet

1 Page
//media.cheatography.com/storage/thumb/lcjury_vim-tips.750.jpg

PDF (recommended)

Alternative Downloads

Share This Cheat Sheet!

 

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