LoginSignup
4
5

More than 5 years have passed since last update.

違うOSで編集されたファイルの改行コードをviで修正する方法

Last updated at Posted at 2016-05-19

viで対象ファイルを開いて以下のコマンドを入力
vim
:set fileformat=unix

windowsで作成したファイルをlinuxへ移動した時に改行コードが原因で動かない時があって
わざわざサクラエディタの正規表現で置換して再移動してたけど、これならその場で直せて便利。

4
5
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
4
5