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

NERDCommenterInvert will not work correctly if there isn't an extra space (Haskell) #447

Closed
wants to merge 1 commit into from

Conversation

attacker0211
Copy link

see this image:
image
after:
image

@alerque
Copy link
Member

alerque commented Dec 3, 2020

Thanks far taking the time to send a contribution. Unfortunately we've been down this path before and there are known bad side effects of adding spaces to the comment delimiter string. Whether you are working in a language that requires them or just prefer them the current remedy is the same, set:

let g:NERDSpaceDelims = 1

See #421 and the plethora of related linked issues there. Haskell also came up specifically in #420.

I would love to see a fix that overhauled this properly to set the space setting defaults on a per language basis as in №421, but this partial solution has too many side effects to accetp.

@alerque alerque closed this Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants