Replacing quote marks around strings in Vim?
There’s also surround.vim, if you’re looking to do this fairly often. You’d use cs'” to change surrounding quotes.
There’s also surround.vim, if you’re looking to do this fairly often. You’d use cs'” to change surrounding quotes.
Replacing tag while keeping attributes has been added to Surround.vim cst<p> replaces whole tag, while cst<p (without closing bracket) keeps attributes.
If you type S(, it will be surrounded by spaces. However if you use the closing ) instead S) it will not be surrounded by spaces. This applies of course to all bracket pair surroundings, <> [] {} (), not merely to (), although the behavior of S< is such that it expects a tag … Read more