LoginSignup
13
13

More than 5 years have passed since last update.

vim で複数ファイルから検索置換

Posted at

設定

# Qfreplace 使用
NeoBundle "thinca/vim-qfreplace"

# 外部grepに使うプログラム設定
set grepprg=ag\ -a
$ vim

で起動し、

:grep {検索文字又は正規表現} ** | cw

で外部grepが走る。** は全ファイル。
ウインドウが vim に戻ったら

:Qfreplace

で 新しいウインドウができるので、置換を行い、保存する。

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