Hi Harutyun,
Thanks for the quick fix. I think it makes sense to make the feature available, since it is mostly replicating what Vim is doing:
- When one keeps typing, hard-wraps are inserted when one reaches 80-char;
- When editing long lines with more than 80 chars, as long as the edit is conducted beyond the 80th char, the whole "line" gets trimmed into pieces.
I can live without gq to format my text on Overleaf (due to its own versioning choice), and I can live with the fact that hard line-breaks for comments are inserted without a leading comment sign. For equations, my take is that one should not write super-long lines for equations to begin with. Since LaTeX ignores all "hard" line-breaks, when there is need to write a super long equation, I usually keep one short bit across a good number of lines.
One thought about the hard-wrap feature: since hard line-breaks are inserted regardless of the "environment", be it comment or equation, it should help to have a ":set nowrap" command for overriding the hard-wraps for the current editing session. I recall myself doing this in Vim when I screw up my wrap-settings and that I need to write very long comments :)
All the best,
-Linfeng