Fork me on GitHub
#vim
<
2018-03-09
>
dominicm08:03:04

https://github.com/tpope/vim-db I'm just surprised this exists by this author

jebberjeb14:03:24

Side note: I like the idea of just using one command (`:DB`) as an interface to a plugin. Think I’ll do that next time.

dominicm16:03:21

gina does this (fugitive alternative)

dominicm16:03:25

it works nicely.

niclasnilsson09:03:56

In vim with fireplace, doing :Eval on these three lines at once outputs what I expect:

(clojure.core/prn clojure.core/*ns*)
(in-ns 'foobar)
(clojure.core/prn clojure.core/*ns*)

;; returns
;; #object[clojure.lang.Namespace 0x27aae97b "user"]
;; #object[clojure.lang.Namespace 0x3bcd426c "foobar"]
However, evaluating them one by one with cpp returns namespace user on the third line, which indicates that vim/fireplace/nrepl(?) goes back to the original namespace after evaluating. How can I change namespace from vim and stay there?

dominicm10:03:17

@niclasnilsson I think you can do :let b:fireplace_ns = 'some-ns'

niclasnilsson10:03:03

Works fine, thanks @dominicm!