52
41

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vimで一時的に文字コードを変換するには

Last updated at Posted at 2014-05-22

例えば、UTF-8な環境でShift-JISで書かれた文書をvimで読むと当然文字化けする。
元のファイルの文字コードは直したくないが、文字コードを指定してファイルを開き直すには

:e ++enc=文字コード名

とすればよい。文字コードは「euc-jp」「shift_jis」「utf-8」があれば十分だろう。

52
41
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
52
41

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?