sent 11:47:20 03 April 2011, Sunday
by Raincole Lai:
Yes, it is surround.vim: when you are in visual mode you can type `s<p>' and get
selected text surrounded with `<p>...</p>'.
Original message:
> 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?
No comments:
Post a Comment