tpope/vim-surround — Issue #41: indentation-dependant multiple-line surround
Author: AndyProk
Created: 2011-12-10 17:33:28+00:00
State: open

Would it be possible to combine what VS does with indentation-recognition (as in http://www.ibm.com/developerworks/linux/library/l-vim-script-2/index.html#A%20function%20to%20help%20you%20code )?

As it is, VS has 1 line as its default scope. It would be nice if some command like ViS would take indentation into account.

↓ with the cursor on <example3 /> or <example4 />: ↓

Or even better would be to also encompass all further indentation:

↓ with cursor on <example 3> or </example3>: ↓