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
project.clj, or a source code file (
, 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
TODO: restart a REPL ? Stop/Start SpaceVim
Parens matching happens automatically, so adding a
( will also add the closing
). The same for
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.
SPC b menu provides commands to manage buffers. A buffer is open as a vim tab and all tabs are displayed along the top.
General commands for version control
SPC ' opens a shell in the directory of the current buffer. Run
git init to create a local repository.
SPC g . is the transient menu
w to stage,
u to unstage
c with popup,
C to commit directly
l shows the git log
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