Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size
-
Hi everyone,
I am using Notepad++ v8.9 (64-bit) and I am looking for a way to achieve a specific wrapping behavior.
My Goal: I want the text to “soft wrap” (visual wrap only, no CR/LF added to the file) exactly at the 80th column (at the last whitespace before 80).
The Problem: Currently, “Word Wrap” always wraps at the right window border. If my monitor is wide and the window is maximized, the text stretches across the whole screen. I have already set the “Vertical Edge” to 80, but this is just a visual line and doesn’t force the text to wrap there.
My Questions:
Is there any native setting I missed to force the soft wrap at the Vertical Edge column instead of the window border?
If not, is there a Plugin (compatible with v8.9) or a Python Script that can simulate this behavior?
I want to keep the file “clean” (no hard breaks) for further processing, but I need the 80-character readability for my creative writing (lyrics).
Thanks in advance for your help!
-
@Thorsten-Heuer Though I didn’t used this much but I have added this in NppVim plugin you
:set tw=60and:wraporgqmotion. I am not sure how to set text width in notepad++. -
@h-jangra said in Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size:
I have added this in NppVim plugin [. . .]I am not sure how to set text width in notepad++
That’s interesting! I’d think that a NP++ plugin can only do things that are also possible in NP++ itself since the underlying engine is the same.
-
@h-jangra
I apologize, but I can’t find a way to set “:set tw=60 and :wrap or gq” in “NppVim”. I’m not a very experienced user; perhaps I’m missing some basic knowledge. -
@Thorsten-Heuer You can set the text width in command mode by typing
:set tw=80. This defines an 80-column wrap limit.After that, use V to select the line (visual line mode) and press
gqto reflow it according to that column width.Currently, this setting isn’t persistent between sessions. If you’d like it to be configurable (similar to Vim), feel free to open an issue, I can look into adding support for it.
-
@Thorsten-Heuer
You can set vertical edge though but then wrap will not work according to that.- Settings → Preferences → Margins/Border/Edge
- Enable Vertical Edge
- Set it to 80
