LoginSignup
2
0

More than 5 years have passed since last update.

【 Vim 】文字列一括置換

Last updated at Posted at 2017-08-22

vimエディタで、検索、一括置換を行う方法。

【 ファイルを開いている場合 】

:%s/(検索文字列)/(置換後の文字列)/g

【 一つずつ置換内容を確認したい場合 】

:%s/(検索文字列)/(置換後の文字列)/gc

最後に、C (Check) を追加すると、一つずつ確認しながら置換を行うことが可能に。

#自分用備忘録

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