https://github.com/djblue/vrepl
vim fireplace + clojure nrepl = awesome
https://github.com/djblue/vrepl
clojure nrepl vim vim-fireplace
Last synced: 2 months ago
JSON representation
vim fireplace + clojure nrepl = awesome
- Host: GitHub
- URL: https://github.com/djblue/vrepl
- Owner: djblue
- License: mit
- Created: 2018-10-19T19:12:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-02T04:41:15.000Z (about 5 years ago)
- Last Synced: 2025-03-12T20:48:47.152Z (10 months ago)
- Topics: clojure, nrepl, vim, vim-fireplace
- Language: Clojure
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vrepl
Bootstrap vim with a clojure nrepl session.
## dependencies
- [clojure 1.9+](https://clojure.org/guides/getting_started)
- [tpope/fireplace.vim](https://github.com/tpope/vim-fireplace)
## recommended plugins
- [luochen1990/rainbow](https://github.com/luochen1990/rainbow)
- [vim-scripts/paredit.vim](https://github.com/vim-scripts/paredit.vim)
- [venantius/vim-cljfmt](https://github.com/venantius/vim-cljfmt)
- [ervandew/supertab](https://github.com/ervandew/supertab)
## setup
In `$HOME/.clojure/deps.edn`, add a new alias:
```clojure
:aliases
{:vrepl {:main-opts ["-m" "vrepl.core"]
:extra-deps
{vrepl {:git/url "https://github.com/djblue/vrepl.git"
:sha "cc7f140869ce3ab8602e289248226a9b2b247943"}}}}
```
then run:
```bash
clojure -Avrepl
```
If you want to include the current directoy in your class path, do:
```bash
clojure -Sdeps '{:paths ["."]}' -Avrepl
```
You should be put into a new empty vim window in a clojure buffer with a
connected nrepl session. Any additional arguments will be passed directly
to vim, so you can pass files you want to open as well.
To setup a shell alias for vrepl, do:
```bash
alias vrepl="clojure -Sdeps '{:paths [\".\"]}' -Avrepl-dev"
```