On 05/04/2017 22:37, Charlie Gibbs wrote:
> On 2017-04-05, James Harris wrote:
>
>> On 05/04/2017 18:00, Charlie Gibbs wrote:
>>
>>> 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.)
>>
>> Notepad uses CRLF line endings. AFAIK, vi uses LF only. How do you deal
>> with that?
>
> I zip files being transferred between machines. This ensures that time
> stamps are preserved (and, as a bonus, checksums the individual files).
> Zip also has options to fix up the line endings when going from machine
> to machine.
Ah, OK. Moving files is more work than I had in mind but I take your
point about using zip options.
I have my Unix systems present Windows shares so that I can edit files
on a Unix box just as if they were on my Windows machines. No file
transfers needed.
>
>> When using Windows to edit Unix files I usually use Wordpad since it
>> accepts existing files with LF line ends.
>
> Interesting. My way gives me native line endings on both machines, though.
On Unix there are various ways to adjust the line endings. On Windows,
you can replace LF with CRLF by copy from Wordpad and paste to Notepad.
--
James Harris
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|