130
114

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 2016-08-14

指定の文字コードでファイルを開き直す

Shift JIS でファイルを開き直す

:edit ++encoding=sjis
:e ++enc=cp932

UTF-8 でファイルを開き直す

:e ++enc=utf-8

指定の文字コードでファイルを保存する

Shift JIS でファイルを保存

:set fileencoding=sjis
:se fenc=cp932

現在のエンコードを確認する

Vim のエンコード

:se enc?

ファイルのエンコード

:se fenc?

シリーズ Vim

130
114
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
130
114

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?