14.06.2014 Views

vim 101 hacks

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Buyer: xiujuan lu (luxiujuan@gmail.com)<br />

Transaction ID: 85W16630AD8515549<br />

Vim <strong>101</strong> Hacks<br />

www.thegeekstuff.com<br />

Chapter 15: Bonus Hacks<br />

Bonus Hack 1. Add Bullet Point Style to List of Items<br />

Let us assume that you would like to convert the following items to bulleted<br />

list in Vim editor.<br />

The Geek Stuff article categories:<br />

Vi / Vim Tips and Tricks<br />

Linux Tutorials<br />

SSH Tips and Tricks<br />

Productivity Tips<br />

HowTo & FAQ<br />

Hardware Articles<br />

Nagios Tutorials<br />

MySQL and PostgreSQL Tips<br />

Follow the steps below to convert the above to bulleted list.<br />

Step 1: Go to the first character of the first item that needs to be converted<br />

to bullet list. From here go to visual mode by pressing CTRL-V<br />

CTRL-V<br />

Step 2: Select the first character of all the bullet points in the visual mode as<br />

shown below.<br />

155

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!