LoginSignup
0
0

More than 5 years have passed since last update.

Terminal越しのVimで^Mをなんとかする

Posted at

tl;dr

^M付で貼り付け(ペースト)してしまったら、CTRL-V, CTRL-Mで入力して置換しよう。
備忘です。

What

Chromeで設定ファイルを開いて、コピペした。すると、

image.png

ふぁっく、^M だ。なんとかしよう。

How

Vim力が低いので調べたら ^MCTRL+V, CTRL+M で入力できるらしい。
なので、

image.png

:s/^M/\r/g

で入力できた。制御文字は文字色がかわるみたい。んで、実行すると、

image.png

となって、整形できた。よかった。

0
0
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
0
0