nerdcommenter icon indicating copy to clipboard operation
nerdcommenter copied to clipboard

Long comments automatically being wrapped?

Open leftbones opened this issue 2 years ago • 3 comments

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:

  • YouCompleteMe
  • NERDTree
  • NERDCommenter
  • Vim-Surround
  • Auto-Pairs

leftbones avatar Jan 14 '24 18:01 leftbones

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.

alerque avatar Jan 16 '24 10:01 alerque

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!

leftbones avatar Jan 16 '24 15:01 leftbones

Did you try :set textwidth=0?

alerque avatar Jan 16 '24 19:01 alerque