On 2017-04-05, Axel Berger wrote:
> Charlie Gibbs wrote:
>
>> and many programs (e.g. cat) assume a tab every 8 spaces.
>
> Are you seriously using an editor for actual work, that does not even
> have have a configurable tab length?
Yes: vi on Linux, Notepad on Windows. (I compile the same source code
for both systems, and edit it on whichever one is more appropriate at
the time.)
>> I'm sure some vi guru will have a magic solution
>
> My editor has that one configurable too on saving the file.
It seems that the only truly effective and portable solution is to
store the code with no tab stops (the hit on file size shouldn't
be too bad in this era of cheap and plentiful disk space). Then
I must find an editor (both Linux and Windows versions, please)
which translates between runs of spaces and appropriate tab commands
(as opposed to tab characters). Naturally, it must be smart enough
to not touch quoted strings.
--
/~\ cgibbs@kltpzyxm.invalid (Charlie Gibbs)
\ / I'm really at ac.dekanfrus if you read it the right way.
X Top-posted messages will probably be ignored. See RFC1855.
/ \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|