Skip to content

Instantly share code, notes, and snippets.

@Olical
Created April 18, 2018 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Olical/1c696c01ed573f1844a97b047aba30f3 to your computer and use it in GitHub Desktop.
Save Olical/1c696c01ed573f1844a97b047aba30f3 to your computer and use it in GitHub Desktop.
Vim bindings for vim-fireplace that act like cider-refresh
autocmd FileType clojure nnoremap <buffer> <silent> <localleader>rx :Eval (do (bounce.system/stop!) (clojure.tools.namespace.repl/set-refresh-dirs "src/clj" "src/cljc") (clojure.tools.namespace.repl/refresh :after 'bounce.system/start!))<cr>
autocmd FileType clojure nnoremap <buffer> <silent> <localleader>rX :Eval (do (bounce.system/stop!) (clojure.tools.namespace.repl/clear) (clojure.tools.namespace.repl/set-refresh-dirs "src/clj" "src/cljc") (clojure.tools.namespace.repl/refresh-all :after 'bounce.system/start!))<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment