This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-12
Channels
- # aleph (1)
- # beginners (81)
- # boot (20)
- # cider (46)
- # cljs-dev (6)
- # cljsjs (6)
- # cljsrn (8)
- # clojars (2)
- # clojure (104)
- # clojure-berlin (3)
- # clojure-italy (4)
- # clojure-losangeles (2)
- # clojure-nl (16)
- # clojure-spec (16)
- # clojure-uk (28)
- # clojurescript (88)
- # core-logic (31)
- # cursive (8)
- # data-science (3)
- # datascript (1)
- # datomic (95)
- # docs (1)
- # emacs (6)
- # figwheel-main (24)
- # fulcro (106)
- # graphql (5)
- # hyperfiddle (2)
- # midje (2)
- # nrepl (1)
- # off-topic (14)
- # om-next (1)
- # parinfer (2)
- # pedestal (26)
- # portkey (2)
- # re-frame (11)
- # reagent (27)
- # ring (6)
- # rum (4)
- # shadow-cljs (33)
- # spacemacs (10)
- # specter (53)
- # tools-deps (17)
- # vim (31)
@fedreg Perhaps you can tell what your workflow is in emacs, so we can hint at the corresponding plugins on vim side
@tomi.hukkalainen_slac Good point!! …Very straightforward workflow. About 95% of the time working with clj. 5% cljs. In emacs I just open up a project, start up and connect to a new repl, set up some sample data and feed it to my functions in the namespace. I rarely send the namespace to the repl itself. I also usually run the tests by hand in their namespace. Don’t use parinfer or paredit, just rainblow delimeters. I do use the cider REPL extensively though so if anything like that exists in the vim world, that would be great. Aside from that… I try to run fairly lean so just looking for a vim setup that will let me quickly start up, connect to a repl, and start coding. Thx!
however, no repl buffer really. I tend to use (comment)
sections in the buffer mostly, with :Eval
being a close second.
I've found that using #_(...)
style reader comments makes :Eval more useful, I even mapped it to ,cpt
like for instance this bit:
#_(-> (cache/lru-cache-factory {})
(assoc :a 1)
(assoc :b 2)
(cache/hit :a)
(assoc :c 3)
pr-str)
so in order to have the top form be evaluated, I need to move my cursor to the threading operator at the top
or, since this is the top level form, I just run cpt
(or :Eval
) and it runs without me having to move my cursor
Yeah +1 to that