Mailing List Archive
tlug.jp Mailing List tlug archive tlug 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 Ubun
- Date: Wed, 16 Sep 2020 16:22:47 +0800
- From: Stephen Lee <sl-tlug@example.com>
- Subject: Re: [tlug] [RESOLVED] Re: What's the easiest way to edit EUC-JP files on a remote server from an Ubun
- References: <CA+su7OUw8609q6MjWGQow1jC-CnyZ2wUTaWDaK+HT_jRK+5Vog@mail.gmail.com> <CAAhy3dvC2LG1MZHq3BEiJC+dT0-c7j4FTBCB9+uCOKS=T7i5Lw@mail.gmail.com> <CA+su7OV0Q_7TRR00dur40ATkKgxmqsOWgZi89N0rUd+BWtJV0g@mail.gmail.com> <2WCJVSSK7PDKK.2A16EBZE6CDLR@wilsonb.com> <CA+su7OX4+brW8A74_KXSGZbiBJROsqwMsR=g2VhSr0TmpXbJGg@mail.gmail.com>
Edmund Edgar <lists@example.com> wrote: > On Tue, 15 Sep 2020 at 15:44, <eizietheez@example.com> wrote: > > Is there any reason the `fileencodings' setting doesn't work for you? > > $ vim --cmd 'set fileencodings=euc-jp' euc-jp-encoded-file.txt > > That works fine if the file is local, but it's on a remote server that I'm > ssh'ing to. vim is capable of doing on-the-fly translation between file and terminal encodings. Possibly the remote host has different defaults / remote vim picks a different encoding to work as, causing it to behave differently from your local vim. Try setting your local terminal encoding to UTF-8 and use these settings on the remote host .vimrc and see if you can edit a EUC-JP (or Shift-JIS, or UTF-8, etc) file with them. :set encoding=utf-8 :set fileencodings=iso-2022-jp,euc-jp,sjis,utf-8 :set fileformats=unix,dos,mac Reference: https://itcweb.cc.affrc.go.jp/affrit/faq/tips/vim-enc The details are hairy. e.g. I'm not sure how locale (in the environment and in vim) interacts with the above, and there's a "termencoding" option etc. Check the manual if you are interested. https://vimhelp.org/usr_45.txt.html https://vimhelp.org/mbyte.txt.html -- Stephen Lee <sl-tlug@example.com>
- References:
- [tlug] What's the easiest way to edit EUC-JP files on a remote server from an Ubuntu 20.04 desktop?
- From: Edmund Edgar
- Re: [tlug] What's the easiest way to edit EUC-JP files on a remote server from an Ubuntu 20.04 desktop?
- From: Raymond Wan
- [tlug] [RESOLVED] Re: What's the easiest way to edit EUC-JP files on a remote server from an Ubuntu 20.04 desktop?
- From: Edmund Edgar
- Re: [tlug] [RESOLVED] Re: What's the easiest way to edit EUC-JP files on a remote server from an Ubun
- From: eizietheez
- Re: [tlug] [RESOLVED] Re: What's the easiest way to edit EUC-JP files on a remote server from an Ubun
- From: Edmund Edgar
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [RESOLVED] Re: What's the easiest way to edit EUC-JP files on a remote server from an
- Next by Date: [tlug] Connecting cameras as webcams
- Previous by thread: Re: [tlug] [RESOLVED] Re: What's the easiest way to edit EUC-JP files on a remote server from an
- Next by thread: Re: [tlug] What's the easiest way to edit EUC-JP files on a remote server from an Ubuntu 20.04 desktop?
- Index(es):