Skip to content
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
Closed

Remove trailing spaces after a comment symbol #102

barraponto opened this issue Jan 15, 2013 · 4 comments

Comments

@barraponto
Copy link

@barraponto barraponto commented Jan 15, 2013

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
Copy link

@mightyiam mightyiam commented Aug 6, 2013

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

@jonafato
Copy link

@jonafato jonafato commented Jul 27, 2015

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

@mightyiam
Copy link

@mightyiam mightyiam commented Jul 27, 2015

Thank you, @jonafato

@alerque
Copy link
Member

@alerque 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.