Sunday, April 3, 2011

Is there a plugin which allows I add tags in Visual Mode?

I want to select some text in Visual mode, and then add a pair of tag which embrace it.

For example, there is a raw text file:

I'm using vim.

To make it a web page:

<p>I'm using vim.</p>

I have to type <p> at the beginning and type </p> at the end, with i, esc, i, esc.
I want to use V to select this line, then do something magical add the <p> and </p>.
Is there a plugin?  

--
Lai, Yu-Hsuan

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: