Community
    • Login

    Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 3 Posters 260 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Thorsten HeuerT
      Thorsten Heuer
      last edited by

      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!

      h-jangraH 1 Reply Last reply Reply Quote 0
      • h-jangraH
        h-jangra @Thorsten Heuer
        last edited by

        @Thorsten-Heuer Though I didn’t used this much but I have added this in NppVim plugin you :set tw=60 and :wrap or gq motion. I am not sure how to set text width in notepad++.

        fml2F Thorsten HeuerT 2 Replies Last reply Reply Quote 0
        • fml2F
          fml2 @h-jangra
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • Thorsten HeuerT
            Thorsten Heuer @h-jangra
            last edited by

            @h-jangra Bild1.png 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.

            h-jangraH 2 Replies Last reply Reply Quote 0
            • h-jangraH
              h-jangra @Thorsten Heuer
              last edited by

              @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 gq to 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.

              1 Reply Last reply Reply Quote 0
              • h-jangraH
                h-jangra @Thorsten Heuer
                last edited by

                @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

                86b1a92a-f3ff-4215-b340-a558e78e6319-image.png

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors