Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] [RESOLVED] Re: What's the easiest way to edit EUC-JP files on a remote server from an



Edmund Edgar <lists@example.com> wrote:
> That works fine if the file is local, but it's on a remote server that I'm
> ssh'ing to.

Hrm. Not quite sure I understand the problem. I just created a euc-jp file on
my remote server and was able to successfully edit it through ssh:

    $ file foo.txt
    foo.txt: ISO-8859 text
    $ scp foo.txt example.com:
    $ vim --cmd 'set fileencodings=euc-jp' scp://example.com/foo.txt

If, on the other hand, you are doing everything from a shell on the remote
machine, then from vim's perspective it is a local edit, it still should Just
Work:

    remote$ vim --cmd 'set fileencodings=euc-jp' foo.txt

Really, there shouldn't be any need to make your vterm character encoding pay
homage to the character encoding of a particular file.

I are konfused. :/

Attachment: signature.asc
Description: PGP signature


Home | Main Index | Thread Index