Vim: Feature: Vim surround option to surround without spaces for bracket types

Created on 28 Feb 2020  路  3Comments  路  Source: VSCodeVim/Vim

Is your feature request related to a problem? Please describe.
When surrounding with bracket types [, {, (, ], }, ) there is an extra space between. I work with some languages/frameworks (Angular) that factor in the spacing.

Describe the solution you'd like
Have an option like vim.surroundBracketSpace that can be toggled for including or excluding the space.

Describe alternatives you've considered
I have to word back, remove the space, word forward, remove the space...

statuby-design

Most helpful comment

This actually depends on if you use an open or close bracket. Open brackets give the extra space you're seeing.

All 3 comments

This actually depends on if you use an open or close bracket. Open brackets give the extra space you're seeing.

Yep, as documented here

Wow. Sorry for opening this and thanks! My life has been changed for the better.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

WangRongda picture WangRongda  路  3Comments

rajinder-yadav picture rajinder-yadav  路  3Comments

ACollectionOfAtoms picture ACollectionOfAtoms  路  3Comments

cckowin picture cckowin  路  3Comments

st-schneider picture st-schneider  路  3Comments