33
23

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でのBOMの取り扱い

Last updated at Posted at 2015-10-01

BOM付きファイルの確認

VimでBOM付きファイルを開いても一見BOMが付いているのかそうでないのかわからない。
VimでBOMを確認するには以下のコマンドを使う。

:set bomb?

> bomb
> nobomb

BOMを付けたいときは

:set bomb

逆にBOMを取りたいときは

:set nobomb
33
23
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
33
23

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?