less calls nano instead of vi

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












In the default configuration of Ubuntu 18 LTS server, pressing the V key in less calls the nano editor instead of vi while none of the environment variables $LESSEDIT, $VISUAL or $EDITOR are set.



I was able to restore the correct behavior as documented in man less with update-alternatives --set editor /usr/bin/vim.basic but this proves less executes editor instead of vi.



Is this a documentation bug (Ubuntu behavior intentionally differing from default upstream less behavior) or a bug in less or is it my fault (did I miss something) ?







share|improve this question


























    up vote
    3
    down vote

    favorite












    In the default configuration of Ubuntu 18 LTS server, pressing the V key in less calls the nano editor instead of vi while none of the environment variables $LESSEDIT, $VISUAL or $EDITOR are set.



    I was able to restore the correct behavior as documented in man less with update-alternatives --set editor /usr/bin/vim.basic but this proves less executes editor instead of vi.



    Is this a documentation bug (Ubuntu behavior intentionally differing from default upstream less behavior) or a bug in less or is it my fault (did I miss something) ?







    share|improve this question
























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      In the default configuration of Ubuntu 18 LTS server, pressing the V key in less calls the nano editor instead of vi while none of the environment variables $LESSEDIT, $VISUAL or $EDITOR are set.



      I was able to restore the correct behavior as documented in man less with update-alternatives --set editor /usr/bin/vim.basic but this proves less executes editor instead of vi.



      Is this a documentation bug (Ubuntu behavior intentionally differing from default upstream less behavior) or a bug in less or is it my fault (did I miss something) ?







      share|improve this question














      In the default configuration of Ubuntu 18 LTS server, pressing the V key in less calls the nano editor instead of vi while none of the environment variables $LESSEDIT, $VISUAL or $EDITOR are set.



      I was able to restore the correct behavior as documented in man less with update-alternatives --set editor /usr/bin/vim.basic but this proves less executes editor instead of vi.



      Is this a documentation bug (Ubuntu behavior intentionally differing from default upstream less behavior) or a bug in less or is it my fault (did I miss something) ?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 17 at 15:04









      muru

      129k19271462




      129k19271462










      asked Aug 17 at 12:47









      Juergen

      273




      273




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          6
          down vote



          accepted










          It's a documentation bug in the man page, the behavior is documented in /usr/share/doc/less/README.Debian).



          In Debian and its derivatives (like Ubuntu) programs must use editor as standard editor if neither $VISUIAL nor $EDITOR is set, see the Debian policy manual.






          share|improve this answer




















          • Do you think I should create a Debian documentation bug for this or will that be ignored anyway in favor of more important bugs ?
            – Juergen
            Aug 17 at 13:44











          • The less package already contains a patch for the manpage so the maintainer seems to care about this kind of things.
            – Florian Diesch
            Aug 18 at 8:40










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1066220%2fless-calls-nano-instead-of-vi%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          6
          down vote



          accepted










          It's a documentation bug in the man page, the behavior is documented in /usr/share/doc/less/README.Debian).



          In Debian and its derivatives (like Ubuntu) programs must use editor as standard editor if neither $VISUIAL nor $EDITOR is set, see the Debian policy manual.






          share|improve this answer




















          • Do you think I should create a Debian documentation bug for this or will that be ignored anyway in favor of more important bugs ?
            – Juergen
            Aug 17 at 13:44











          • The less package already contains a patch for the manpage so the maintainer seems to care about this kind of things.
            – Florian Diesch
            Aug 18 at 8:40














          up vote
          6
          down vote



          accepted










          It's a documentation bug in the man page, the behavior is documented in /usr/share/doc/less/README.Debian).



          In Debian and its derivatives (like Ubuntu) programs must use editor as standard editor if neither $VISUIAL nor $EDITOR is set, see the Debian policy manual.






          share|improve this answer




















          • Do you think I should create a Debian documentation bug for this or will that be ignored anyway in favor of more important bugs ?
            – Juergen
            Aug 17 at 13:44











          • The less package already contains a patch for the manpage so the maintainer seems to care about this kind of things.
            – Florian Diesch
            Aug 18 at 8:40












          up vote
          6
          down vote



          accepted







          up vote
          6
          down vote



          accepted






          It's a documentation bug in the man page, the behavior is documented in /usr/share/doc/less/README.Debian).



          In Debian and its derivatives (like Ubuntu) programs must use editor as standard editor if neither $VISUIAL nor $EDITOR is set, see the Debian policy manual.






          share|improve this answer












          It's a documentation bug in the man page, the behavior is documented in /usr/share/doc/less/README.Debian).



          In Debian and its derivatives (like Ubuntu) programs must use editor as standard editor if neither $VISUIAL nor $EDITOR is set, see the Debian policy manual.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 17 at 13:13









          Florian Diesch

          62.7k16156176




          62.7k16156176











          • Do you think I should create a Debian documentation bug for this or will that be ignored anyway in favor of more important bugs ?
            – Juergen
            Aug 17 at 13:44











          • The less package already contains a patch for the manpage so the maintainer seems to care about this kind of things.
            – Florian Diesch
            Aug 18 at 8:40
















          • Do you think I should create a Debian documentation bug for this or will that be ignored anyway in favor of more important bugs ?
            – Juergen
            Aug 17 at 13:44











          • The less package already contains a patch for the manpage so the maintainer seems to care about this kind of things.
            – Florian Diesch
            Aug 18 at 8:40















          Do you think I should create a Debian documentation bug for this or will that be ignored anyway in favor of more important bugs ?
          – Juergen
          Aug 17 at 13:44





          Do you think I should create a Debian documentation bug for this or will that be ignored anyway in favor of more important bugs ?
          – Juergen
          Aug 17 at 13:44













          The less package already contains a patch for the manpage so the maintainer seems to care about this kind of things.
          – Florian Diesch
          Aug 18 at 8:40




          The less package already contains a patch for the manpage so the maintainer seems to care about this kind of things.
          – Florian Diesch
          Aug 18 at 8:40

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1066220%2fless-calls-nano-instead-of-vi%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery