Wednesday, September 28, 2011

Re: Is there a way to mimic textmate's "wrap each selected line in open/close tag" ?

Dear Amitava Shee,

2011/9/28 Amitava Shee <amitava.shee@gmail.com>
I have starting using the excellent surround.vim plugin. Is there a way to mimic textmate's "wrap each selected line in open/close tag" ?

To surround the current line with say a div-tag, type the following while your cursor is on the line:
Vstdiv
 

Also, I am viws" does not wrap the word with " - instead it deletes the word and puts you between "".  viwS" seems to do the right thing. Is this correct behaviour?

It is. Use ysiw" instead.

See :h surround for details


Kind regards!
Asis

--
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: