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'
- endfunction
- map <leader>fr :FindReplace
Add Comment
Please, Sign In to add comment