Can I modify the behaviour of backspace in gnu nano?
Clash 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?
nano
add a comment |Â
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?
nano
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
add a comment |Â
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?
nano
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?
nano
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
answered May 2 at 19:10
MatsK
1033
1033
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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