Skip to content

Instantly share code, notes, and snippets.

@jeanbza
Forked from elainemckinley/vi_multiple.md
Last active August 29, 2015 14:20
Show Gist options
  • Save jeanbza/9fe07efcffedf871d837 to your computer and use it in GitHub Desktop.
Save jeanbza/9fe07efcffedf871d837 to your computer and use it in GitHub Desktop.
  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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment