Skip to content

Instantly share code, notes, and snippets.

@giulioungaretti
Created February 24, 2016 09:26
Show Gist options
  • Save giulioungaretti/ef667295fad6207cd5ae to your computer and use it in GitHub Desktop.
Save giulioungaretti/ef667295fad6207cd5ae to your computer and use it in GitHub Desktop.
but
com! -nargs=* SR call SearchReplaceBuffers(<f-args>)
:function! SearchReplaceBuffers(search, replace)
:bufdo! %s/a:search/a:replace/ge
:endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment