Skip to content

Instantly share code, notes, and snippets.

@toshiyukino
Last active August 19, 2016 04:01
Show Gist options
  • Save toshiyukino/6420bfee6b5032302707e3dd343e460a to your computer and use it in GitHub Desktop.
Save toshiyukino/6420bfee6b5032302707e3dd343e460a to your computer and use it in GitHub Desktop.
d.hatena.ne.jp/teramako/20061003/p1
vimで置換の際に改行を入れる
<ESC>:%s/;/;^M/g
<ESC>:%s/{/{^M/g

^MはCtrl+v,Ctrl+mと入力する。

が↓でもいけるっポイ

<ESC>:%s/;/;\r/g
<ESC>:%s/{/{\r/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment