Nicolás Brailovsky


A modern blog

Vim Tip: Select everything

author Posted by: nico on date Jul 11th, 2009 | filed Filed under: Vim, Vim Tips
vim_editor There’s an easy way to select the whole contents of the document: “ggVG”. May seem like a lot at first glance but let’s review it part by part:

gg: Go to the beggining of the document
V: Enter visual mode
G: Go to the end of the document

Easy, isn’t it? Now you can press any other command to copy, delete or whatever you like.

     Add A Comment

trackback Trackback URI | rsscomment Comments RSS