Make nano hard-wrap lines at 80 characters












0















I saw Long line wrapping in Nano and while the manpage says -




set fill number - Hard-wrap lines at column number number. If
number is 0 or less, the maximum line length will be the screen width
less number columns. The default value is -8.




This is how my ~/.nanorc is looking -



[$] cat ~/.nanorc

set autoindent
set backup
set constantshow
set fill 80


What I want is that once I start writing something, I should not have to have to break my rhythm of writing and once 80 characters exceed on a line it should hand-wrap and come to the starting of next line which does not happen atm.



What am I doing wrong ?



Update - I tried doing at thomas shared -



[$] cat .nanorc

set autoindent
set backup
set constantshow
set fill 64 columns


still no go, Using nano 2.7.1-1










share|improve this question
















bumped to the homepage by Community 19 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    0















    I saw Long line wrapping in Nano and while the manpage says -




    set fill number - Hard-wrap lines at column number number. If
    number is 0 or less, the maximum line length will be the screen width
    less number columns. The default value is -8.




    This is how my ~/.nanorc is looking -



    [$] cat ~/.nanorc

    set autoindent
    set backup
    set constantshow
    set fill 80


    What I want is that once I start writing something, I should not have to have to break my rhythm of writing and once 80 characters exceed on a line it should hand-wrap and come to the starting of next line which does not happen atm.



    What am I doing wrong ?



    Update - I tried doing at thomas shared -



    [$] cat .nanorc

    set autoindent
    set backup
    set constantshow
    set fill 64 columns


    still no go, Using nano 2.7.1-1










    share|improve this question
















    bumped to the homepage by Community 19 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      0












      0








      0








      I saw Long line wrapping in Nano and while the manpage says -




      set fill number - Hard-wrap lines at column number number. If
      number is 0 or less, the maximum line length will be the screen width
      less number columns. The default value is -8.




      This is how my ~/.nanorc is looking -



      [$] cat ~/.nanorc

      set autoindent
      set backup
      set constantshow
      set fill 80


      What I want is that once I start writing something, I should not have to have to break my rhythm of writing and once 80 characters exceed on a line it should hand-wrap and come to the starting of next line which does not happen atm.



      What am I doing wrong ?



      Update - I tried doing at thomas shared -



      [$] cat .nanorc

      set autoindent
      set backup
      set constantshow
      set fill 64 columns


      still no go, Using nano 2.7.1-1










      share|improve this question
















      I saw Long line wrapping in Nano and while the manpage says -




      set fill number - Hard-wrap lines at column number number. If
      number is 0 or less, the maximum line length will be the screen width
      less number columns. The default value is -8.




      This is how my ~/.nanorc is looking -



      [$] cat ~/.nanorc

      set autoindent
      set backup
      set constantshow
      set fill 80


      What I want is that once I start writing something, I should not have to have to break my rhythm of writing and once 80 characters exceed on a line it should hand-wrap and come to the starting of next line which does not happen atm.



      What am I doing wrong ?



      Update - I tried doing at thomas shared -



      [$] cat .nanorc

      set autoindent
      set backup
      set constantshow
      set fill 64 columns


      still no go, Using nano 2.7.1-1







      debian nano






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:36









      Community

      1




      1










      asked Nov 10 '16 at 20:47









      shirishshirish

      3,82763386




      3,82763386





      bumped to the homepage by Community 19 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 19 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Your .nanorc appears to be trying to set the margin at eighty-percent. But the manual says that the number is columns. Perhaps you meant something like



          80 * .80 = 64 columns





          share|improve this answer
























          • I have updated my question, maybe you can help me figure it out, I didn't get your answer.

            – shirish
            Nov 10 '16 at 21:37











          • In a quick check, using your .nanorc and current code it wraps for me. You'll have to provide more details.

            – Thomas Dickey
            Nov 10 '16 at 22:40











          • I am using the buffer as a text editor. It doesn't wrap the text for me. Could you share you nanorc, the way it is written at your end. Maybe something I missed or it's a bug, have to know to figure it out. Sharing a single line text I created dropbox.com/s/tb1n8vmyxm7jiuv/sample.txt?dl=0 and s12.postimg.org/p2ln0k10d/nano_buffer_no_wrapping.png as a screenshot of the buffer. Hopefully you will be able to figure out what is going wrong.

            – shirish
            Nov 11 '16 at 6:27











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f322437%2fmake-nano-hard-wrap-lines-at-80-characters%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Your .nanorc appears to be trying to set the margin at eighty-percent. But the manual says that the number is columns. Perhaps you meant something like



          80 * .80 = 64 columns





          share|improve this answer
























          • I have updated my question, maybe you can help me figure it out, I didn't get your answer.

            – shirish
            Nov 10 '16 at 21:37











          • In a quick check, using your .nanorc and current code it wraps for me. You'll have to provide more details.

            – Thomas Dickey
            Nov 10 '16 at 22:40











          • I am using the buffer as a text editor. It doesn't wrap the text for me. Could you share you nanorc, the way it is written at your end. Maybe something I missed or it's a bug, have to know to figure it out. Sharing a single line text I created dropbox.com/s/tb1n8vmyxm7jiuv/sample.txt?dl=0 and s12.postimg.org/p2ln0k10d/nano_buffer_no_wrapping.png as a screenshot of the buffer. Hopefully you will be able to figure out what is going wrong.

            – shirish
            Nov 11 '16 at 6:27
















          0














          Your .nanorc appears to be trying to set the margin at eighty-percent. But the manual says that the number is columns. Perhaps you meant something like



          80 * .80 = 64 columns





          share|improve this answer
























          • I have updated my question, maybe you can help me figure it out, I didn't get your answer.

            – shirish
            Nov 10 '16 at 21:37











          • In a quick check, using your .nanorc and current code it wraps for me. You'll have to provide more details.

            – Thomas Dickey
            Nov 10 '16 at 22:40











          • I am using the buffer as a text editor. It doesn't wrap the text for me. Could you share you nanorc, the way it is written at your end. Maybe something I missed or it's a bug, have to know to figure it out. Sharing a single line text I created dropbox.com/s/tb1n8vmyxm7jiuv/sample.txt?dl=0 and s12.postimg.org/p2ln0k10d/nano_buffer_no_wrapping.png as a screenshot of the buffer. Hopefully you will be able to figure out what is going wrong.

            – shirish
            Nov 11 '16 at 6:27














          0












          0








          0







          Your .nanorc appears to be trying to set the margin at eighty-percent. But the manual says that the number is columns. Perhaps you meant something like



          80 * .80 = 64 columns





          share|improve this answer













          Your .nanorc appears to be trying to set the margin at eighty-percent. But the manual says that the number is columns. Perhaps you meant something like



          80 * .80 = 64 columns






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 10 '16 at 21:27









          Thomas DickeyThomas Dickey

          53.5k5101174




          53.5k5101174













          • I have updated my question, maybe you can help me figure it out, I didn't get your answer.

            – shirish
            Nov 10 '16 at 21:37











          • In a quick check, using your .nanorc and current code it wraps for me. You'll have to provide more details.

            – Thomas Dickey
            Nov 10 '16 at 22:40











          • I am using the buffer as a text editor. It doesn't wrap the text for me. Could you share you nanorc, the way it is written at your end. Maybe something I missed or it's a bug, have to know to figure it out. Sharing a single line text I created dropbox.com/s/tb1n8vmyxm7jiuv/sample.txt?dl=0 and s12.postimg.org/p2ln0k10d/nano_buffer_no_wrapping.png as a screenshot of the buffer. Hopefully you will be able to figure out what is going wrong.

            – shirish
            Nov 11 '16 at 6:27



















          • I have updated my question, maybe you can help me figure it out, I didn't get your answer.

            – shirish
            Nov 10 '16 at 21:37











          • In a quick check, using your .nanorc and current code it wraps for me. You'll have to provide more details.

            – Thomas Dickey
            Nov 10 '16 at 22:40











          • I am using the buffer as a text editor. It doesn't wrap the text for me. Could you share you nanorc, the way it is written at your end. Maybe something I missed or it's a bug, have to know to figure it out. Sharing a single line text I created dropbox.com/s/tb1n8vmyxm7jiuv/sample.txt?dl=0 and s12.postimg.org/p2ln0k10d/nano_buffer_no_wrapping.png as a screenshot of the buffer. Hopefully you will be able to figure out what is going wrong.

            – shirish
            Nov 11 '16 at 6:27

















          I have updated my question, maybe you can help me figure it out, I didn't get your answer.

          – shirish
          Nov 10 '16 at 21:37





          I have updated my question, maybe you can help me figure it out, I didn't get your answer.

          – shirish
          Nov 10 '16 at 21:37













          In a quick check, using your .nanorc and current code it wraps for me. You'll have to provide more details.

          – Thomas Dickey
          Nov 10 '16 at 22:40





          In a quick check, using your .nanorc and current code it wraps for me. You'll have to provide more details.

          – Thomas Dickey
          Nov 10 '16 at 22:40













          I am using the buffer as a text editor. It doesn't wrap the text for me. Could you share you nanorc, the way it is written at your end. Maybe something I missed or it's a bug, have to know to figure it out. Sharing a single line text I created dropbox.com/s/tb1n8vmyxm7jiuv/sample.txt?dl=0 and s12.postimg.org/p2ln0k10d/nano_buffer_no_wrapping.png as a screenshot of the buffer. Hopefully you will be able to figure out what is going wrong.

          – shirish
          Nov 11 '16 at 6:27





          I am using the buffer as a text editor. It doesn't wrap the text for me. Could you share you nanorc, the way it is written at your end. Maybe something I missed or it's a bug, have to know to figure it out. Sharing a single line text I created dropbox.com/s/tb1n8vmyxm7jiuv/sample.txt?dl=0 and s12.postimg.org/p2ln0k10d/nano_buffer_no_wrapping.png as a screenshot of the buffer. Hopefully you will be able to figure out what is going wrong.

          – shirish
          Nov 11 '16 at 6:27


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f322437%2fmake-nano-hard-wrap-lines-at-80-characters%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Loup dans la culture

          How to solve the problem of ntp “Unable to contact time server” from KDE?

          ASUS Zenbook UX433/UX333 — Configure Touchpad-embedded numpad on Linux