How to make uncomment remove only 1 space?
huyz opened this issue · comments
Huy Z commented
I have:
let g:tcomment#options = {
\ 'col': 1,
\ 'whitespace': 'no',
\ 'strip_whitespace': '0'
\ }
This works for adding no whitespace. But then when I reverse the commenting operation, a space gets eaten. How do I stop whitespace from being eaten?
Tom Link commented
Which filetype is this about? It seems to me this is a problem with filetypes whose comment definition uses commentstring_rx
since the whitespace option deals only with commentstring
.
Huy Z commented
Oh this was for javascript and not languages like vimscript/python/shell.
But you obviously figured that out and I can confirm your commit fixed it.
Thanks!