nerdcommenter icon indicating copy to clipboard operation
nerdcommenter copied to clipboard

[> <] when commenting a line containing a multiline JavaScript comment

Open piotr-s-brainhub opened this issue 7 years ago • 1 comments

OS: Mac OS X 10.12.6 vim: 8.0 NERD Commenter: ff3d8d7d7cae2b64ad9c83c07f461f5115b2b7d6 Language: JavaScript File extension: .js

I have the following line

foo /* bar */

NERD Commenter comments it to the following code:

//foo [> bar <]

and after uncommenting it leaves:

foo [> bar <]

piotr-s-brainhub avatar Jan 31 '18 01:01 piotr-s-brainhub

See also #270. It's not entirely clear to me what needs to happen here. I don't think it's possible to "round trip" all transformations in all cases. In cases that are potentially ambiguous like the one in your example you may need to configure which actions you want to take and make your own choices about how to reverse them.

alerque avatar Jan 31 '18 08:01 alerque