I am wanting to wrap the
<h2> and the
<div> blocks below and surround them both with another
<body> <h2>Im a heading</h2> <div class="row"> im some content </div> </body>
From normal mode, I am entering
-- VISUAL LINE --
- V, select block, S (enter surround mode), then type
vim-surround successfully wraps the block, but loses all indenting, e.g:
<body> <div> <h2>Im a heading</h2> <div class="row"> im some content </div> </div> </body>
I notice elsewhere, people are saying capital
S tells vim-surround "surround AND indent", but for me capital
S only enables vim-surround and lowercase
s doesnt work at all.
This SO answer suggests there is some possible setup required to enable the indenting behaviour for S.
Or is it an operating system specific issue? (My OS is Ubuntu 14.04)
How can I get vim-surround's automatic indenting to work?