Skip to content

Instantly share code, notes, and snippets.

@SathyaBhat
Last active April 13, 2017 09:14
Show Gist options
  • Save SathyaBhat/fd88ab6b65c8792c924ae9cacd35e46e to your computer and use it in GitHub Desktop.
Save SathyaBhat/fd88ab6b65c8792c924ae9cacd35e46e to your computer and use it in GitHub Desktop.
vim bufdo example
Snippet to replace a sentence across multiple buffers in Vim. The `update` writes the changes to the file.
bufdo %s/depends 'mysql2_chef_gem', '\~> 1.0.1'// | update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment