Remove trailing spaces after a comment symbol #102

Closed
barraponto opened this Issue Jan 15, 2013 · 4 comments

Projects

None yet

4 participants

@barraponto

I usually comment stuff with a space between the comment symbol and the actual comment. Like this:

# commented code

But using <leader>cu leaves the space in, resulting in badly indented lines in python. Is there a workaround for this?

@mightyiam

If there is exactly a single space after the comment symbol it should be safe for removal, right?

@jonafato

As of the merging of #183, this should be fixed.

@mightyiam

Thank you, @jonafato

@alerque
Collaborator
alerque commented May 24, 2016

For python this is currently the default behavior. For other languages you can set let g:NERDSpaceDelims = 1 for the extra space to be your default.

@alerque alerque closed this May 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment