|
From: | Peter Magnusson |
Subject: | Re: Global tabgives and spacestotab config option |
Date: | Tue, 22 Jun 2021 13:01:05 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
Attached is a script that does just that. It uses a fixed tabsize of 8, because reading it from the .nanorc file is not really correct: it would use the tabsize of the remote machine, which might be different from the tabsize on the local machine where you are pasting from. Adjust the script (on the remote machine) when on your local machine you use a tabsize other than 8.
Thanks but unfortunately it didnt work, spaces never got converted and no errors. $ nano.sh this-is-a-test-with-space $ nano.sh hejsan $ cat this-is-a-test-with-space hello this is a few or more spaces some more space. $ cat hejsan hej san this is spacez $ /Peter
[Prev in Thread] | Current Thread | [Next in Thread] |