Can I modify the behaviour of backspace in gnu nano?

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











up vote
0
down vote

favorite












I tried to configure my nano to more python friendly editor. I wrote the following to my .nanorc



set tabsize 4
set tabstospaces


I was wondering if I can change the bahavior of backspace such that it removes four spaces at one press if there are only spaces on the left of the cursor and one space if there is at least one non-space character on the left on the cursor?







share|improve this question



















  • I can't be sure I'm not really into nano scripting configuration, but it's a very limited editor. And I'm almost sure it will not be possible to script to behaviour in Nano
    – Kiwy
    May 2 at 13:03














up vote
0
down vote

favorite












I tried to configure my nano to more python friendly editor. I wrote the following to my .nanorc



set tabsize 4
set tabstospaces


I was wondering if I can change the bahavior of backspace such that it removes four spaces at one press if there are only spaces on the left of the cursor and one space if there is at least one non-space character on the left on the cursor?







share|improve this question



















  • I can't be sure I'm not really into nano scripting configuration, but it's a very limited editor. And I'm almost sure it will not be possible to script to behaviour in Nano
    – Kiwy
    May 2 at 13:03












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I tried to configure my nano to more python friendly editor. I wrote the following to my .nanorc



set tabsize 4
set tabstospaces


I was wondering if I can change the bahavior of backspace such that it removes four spaces at one press if there are only spaces on the left of the cursor and one space if there is at least one non-space character on the left on the cursor?







share|improve this question











I tried to configure my nano to more python friendly editor. I wrote the following to my .nanorc



set tabsize 4
set tabstospaces


I was wondering if I can change the bahavior of backspace such that it removes four spaces at one press if there are only spaces on the left of the cursor and one space if there is at least one non-space character on the left on the cursor?









share|improve this question










share|improve this question




share|improve this question









asked May 2 at 11:43









novice

1




1











  • I can't be sure I'm not really into nano scripting configuration, but it's a very limited editor. And I'm almost sure it will not be possible to script to behaviour in Nano
    – Kiwy
    May 2 at 13:03
















  • I can't be sure I'm not really into nano scripting configuration, but it's a very limited editor. And I'm almost sure it will not be possible to script to behaviour in Nano
    – Kiwy
    May 2 at 13:03















I can't be sure I'm not really into nano scripting configuration, but it's a very limited editor. And I'm almost sure it will not be possible to script to behaviour in Nano
– Kiwy
May 2 at 13:03




I can't be sure I'm not really into nano scripting configuration, but it's a very limited editor. And I'm almost sure it will not be possible to script to behaviour in Nano
– Kiwy
May 2 at 13:03










1 Answer
1






active

oldest

votes

















up vote
0
down vote













Somewhere between v2.1 and 2.9 was the parameters added.



Check your version and check the below reference, just replace v2.9 with your version and check if tabsize and tabtospace is available.



https://www.nano-editor.org/dist/v2.9/nanorc.5.html






share|improve this answer





















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f441302%2fcan-i-modify-the-behaviour-of-backspace-in-gnu-nano%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
    0
    down vote













    Somewhere between v2.1 and 2.9 was the parameters added.



    Check your version and check the below reference, just replace v2.9 with your version and check if tabsize and tabtospace is available.



    https://www.nano-editor.org/dist/v2.9/nanorc.5.html






    share|improve this answer

























      up vote
      0
      down vote













      Somewhere between v2.1 and 2.9 was the parameters added.



      Check your version and check the below reference, just replace v2.9 with your version and check if tabsize and tabtospace is available.



      https://www.nano-editor.org/dist/v2.9/nanorc.5.html






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Somewhere between v2.1 and 2.9 was the parameters added.



        Check your version and check the below reference, just replace v2.9 with your version and check if tabsize and tabtospace is available.



        https://www.nano-editor.org/dist/v2.9/nanorc.5.html






        share|improve this answer













        Somewhere between v2.1 and 2.9 was the parameters added.



        Check your version and check the below reference, just replace v2.9 with your version and check if tabsize and tabtospace is available.



        https://www.nano-editor.org/dist/v2.9/nanorc.5.html







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered May 2 at 19:10









        MatsK

        1033




        1033






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441302%2fcan-i-modify-the-behaviour-of-backspace-in-gnu-nano%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay