preservim / nerdcommenter

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

Long comments automatically being wrapped? #532

Open leftbones opened 8 months ago

leftbones commented 8 months ago

I can't confirm that this is caused by this plugin, but this is the only comment related plugin I have, and I have set nowrap in my .vimrc -- Normal lines aren't wrapped, just comments.

Basically, if I type a comment to the edge of the screen, it's wrapped to a new line. I couldn't find anything about this in the README, but I'd like to disable it if possible.

In case this isn't being caused by this plugin, my other plugins are:

alerque commented 8 months ago

Is it hard wrapping or soft wrapping? i.e. if you change the VIM window width does it re-wrap, or is the newline being automatically added to your sources? I doubt it has anything to do with this plugin but maybe we can point you in the right direction.

leftbones commented 8 months ago

Is it hard wrapping or soft wrapping? i.e. if you change the VIM window width does it re-wrap, or is the newline being automatically added to your sources? I doubt it has anything to do with this plugin but maybe we can point you in the right direction.

It’s hard wrapping, like it adds a new line and a comment delimiter to that line. Super weird. I appreciate the help even if it’s not related to this plugin!

alerque commented 8 months ago

Did you try :set textwidth=0?