79109564

Date: 2024-10-21 10:16:02
Score: 1
Natty:
Report link

Combining vimgrep and cfdo you can easily

Find all instances of search string in the project

:vimgrep /search_string/gj **/*

Check quickfix list is correct

:copen

Find and replace and save files

:cfdo %s/search_string/replace_string/g | update

Source: https://engineeringfordatascience.com/posts/how_to_search_and_replace_across_multiple_files_in_vim/

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: karlsebal