Skip to content

Instantly share code, notes, and snippets.

View elainemckinley's full-sized avatar

Elaine McKinley elainemckinley

View GitHub Profile
@elainemckinley
elainemckinley / vi_multiple.md
Created May 11, 2015 16:09
Search and replace in multiple files with Vim
  1. Enter vi edit mode for multiple files:
$ ○ → vi webapps/*.xml
5 files to edit
  1. See all files you're editing: :ls
  2. Search and replace across all files: :argdo %s/old-foo/new-foo/ge