Remove trailing spaces after a comment symbol #102

barraponto opened this Issue Jan 15, 2013 · 4 comments


None yet

4 participants


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?


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


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


Thank you, @jonafato

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