a guest Dec 10th, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- command -nargs=* FindReplace call FindReplace(<f-args>)
- function! FindReplace(find, replace)
- exe ':args `ack -l ' . a:find . '`'
- exe ':argdo %s/' . a:find . '/' . a:replace . '/gce | update'
- map <leader>fr :FindReplace
RAW Paste Data