Search code examples
vimclojureslimevimclojureslimv

How to use vimclojure and SLIMV together?


Both addons have good sides, SLIMV has better REPL(faster than vimclojure REPL), but vimclojure's indentation and syntax coloring is better(also, vimclojure's syntax coloring is working in REPL too). And vimclojure's indentation is better. For example, this is SLIMV indentation for a function:

(defn func
      [])

And this is vimclojure's:

(defn func
   [])

I'm trying to use both plugins, with good sides of each one. I need syntax coloring in SLIMV REPL, and vimclojure indentation. Do you have any ideas how can I do that?


Solution

    • You can replace the Slimv indent plugin in vimfiles/indent with whatever you want (so I guess with Vimclojure's indent plugin as well).
    • You can also replace the syntax plugin in Slimv in vimfiles/syntax (actually there's no special syntax plugin, it uses Vim's built-in lisp.vim).
    • You can enable syntax coloring in the Slimv REPL buffer with this command in your .vimrc: let g:slimv_repl_syntax = 1
    • ... and I'll fix the indentation problem you mentioned in Slimv :)