Skip to content

Instantly share code, notes, and snippets.

@shmup
Last active May 3, 2018 00:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shmup/bcb833d0d024dfd7cbeff14968b7a8e4 to your computer and use it in GitHub Desktop.
Save shmup/bcb833d0d024dfd7cbeff14968b7a8e4 to your computer and use it in GitHub Desktop.
vim prefs for clojure

Vim preferences for Clojure

I want to learn Clojure and I don't want to think about a new editor, or a bunch of new mappings

These are my minimum requirements that make me happy

TL;DR

1) install vim 2) install vim-fireplace and vim-cljfmt 3) add some shit to your ~/.lein/profile.clj
  1. vim
  2. vim-fireplace
    • reference README but mostly you :Connect to a running nREPL
    • often I will :Require the current buffer and play around in the repl
    • K to look up inline docs is nice
    • check out :Source, :Doc, and :FindDoc too
  3. vim-cljfmt
    • A tiny plugin that works with the running nREPL
    • obviously this formats your Clojure, which is nice for me right now because I don't want to think about nice paren related plugins. Maybe later. I try my best, and fall back on this
  4. I make these changes to my ~/.lein/profiles.clj:
{:user {:plugins [[cider/cider-nrepl "0.16.0"]
                  [lein-cljfmt "0.5.7"]]
        :dependencies [[cljfmt "0.5.7"]]
        :repl-options {:init (require 'cljfmt.core)}}}
  1. This Paramount color scheme is so nice because it's mostly 3 colors
    • "A minimal colorscheme for Vim that only puts emphasis on the paramount."
    • I just seem to really enjoy a simpler look to lisps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment