nerdcommenter icon indicating copy to clipboard operation
nerdcommenter copied to clipboard

uncomment sexy mode

Open CoinCheung opened this issue 11 months ago • 1 comments

Hi,

By comment one line with sexy code like this:

Image

Then I uncomment it with command NERDCommenterUncomment, it becomes

Image

This shows that, for one line sexy comment, the uncomment operation cannot resume the sexy comment. Is this designed to be like this?

CoinCheung avatar Feb 14 '25 01:02 CoinCheung

The plugin cannot reliably guess whether an existing comment is a regular or a sexy format one. You must specify.

This can be done by setting let g:NERDCompactSexyComs = 1 or by using the explicit sexy comment/uncomment function and related binding to do the uncomment operation.

alerque avatar Feb 14 '25 08:02 alerque