SpaceVim and vim-fireplace
SpaceVim uses vim-fireplace to provide a simple Clojure development experience that runs very quickly.
Starting a REPL
Open a Clojure file, either deps.edn
, project.clj
, or a source code file (.clj
, .cljs
, .cljc
)
, s i
to start the Clojure REPL f
, s b
to evaluate the code in a source code buffer
, s l
to evaluate the top-level expression under the cursor
Making changes
Parens matching happens automatically, so adding a (
will also add the closing )
. The same for [
and {
.
Typing Clojure function names will show a pop-up menu with auto-completion options.
Live linting is configured in the Practicalli configuration example and continually runs clj-kondo
on the code as you type.
Structured Editing
Buffer management
SPC b
menu provides commands to manage buffers. A buffer is open as a vim tab and all tabs are displayed along the top.
Version control
General commands for version control
SPC '
opens a shell in the directory of the current buffer. Run git init
to create a local repository.
c
with popup, C
to commit directly
D
to see diff of unstaged hunks
F
pull from remote repository with popup
P
push to remote repository with popup
See VersionControl layer keybindings for more commands