LoginSignup
32
22

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
32
22
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
32
22