0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

vimにおけるプロジェクト全体での文字列置換

0
Last updated at Posted at 2026-07-15

プラグインに依存しない!結論!

:vimgrep /words/ **/*
cfdo %s/before/after/gc | update

ファイル指定したいなら

:vimgrep /words/ **/*.py
:vimgrep /words/ **/*.{hpp,cpp}

Caseの区別させたい

これは通常のreplaceと同じで\Cを入れる

:vimgrep /\Cwords/ **/*.py

確認しなくていい

gcのcをなくす

cfdo %s/before/after/g | update
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?