preservim / nerdcommenter

Vim plugin for intensely nerdy commenting powers
Creative Commons Zero v1.0 Universal
4.98k stars 447 forks source link

Update of UC4 Scripting #463

Closed teaVeloper closed 3 years ago

teaVeloper commented 3 years ago

Hi, I forgot to include the changes i made, so it behaves same way as in python. Adding a Space after the comment symbol. Makes scripts better readable. Also included the 'leftAlt' in plain format. So basically same behavior as python, but different symbol. Thanks!

alerque commented 3 years ago

Including spaces in the delimiter (as opposed to turning on let g:NERDSpaceDelims = 1 is a giant can of worms that causes all sorts of problems. We're trying to get away from this, not add more problem cases. The solution we're working towards for Python and others is in #421. See also the myriad of linked issues there.

I'd love to see a PR or some help implementing a per language preference array so this can get a proper resolution. I don't think I want to merge something that adds spaces to the base delimiter except in the case where it is required to parse the language. I fully agree spaces make comments more readable, but that isn't a justification to ruin the functionality for people that don't want them.

teaVeloper commented 3 years ago

Hi, Thank you a lot for your detailed answer! I didn't check the options carefully enough. But will do so in future. I will close the PR as the filetype was already included in my last PR and so I guess everything is set fine.

Thanks for the support at contributing. BR