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

triztian picture triztian  路  3Comments

lucastheisen picture lucastheisen  路  3Comments

ghost picture ghost  路  3Comments

AndersenJ picture AndersenJ  路  3Comments

jaredly picture jaredly  路  3Comments