Guest User

Untitled

a guest
Dec 10th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. command -nargs=* FindReplace call FindReplace(<f-args>)
  2. function! FindReplace(find, replace)
  3. exe ':args `ack -l ' . a:find . '`'
  4. exe ':argdo %s/' . a:find . '/' . a:replace . '/gce | update'
  5. endfunction
  6.  
  7. map <leader>fr :FindReplace
Add Comment
Please, Sign In to add comment