New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trailing spaces after a comment symbol #102

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

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

This comment has been minimized.

Show comment
Hide comment
@mightyiam

mightyiam Aug 6, 2013

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

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

@jonafato

This comment has been minimized.

Show comment
Hide comment
@jonafato

jonafato Jul 27, 2015

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

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

@mightyiam

This comment has been minimized.

Show comment
Hide comment

Thank you, @jonafato

@alerque

This comment has been minimized.

Show comment
Hide comment
@alerque

alerque May 24, 2016

Collaborator

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.

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