This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-09
Channels
- # aws (3)
- # beginners (61)
- # boot (1)
- # cider (80)
- # clara (5)
- # cljs-dev (5)
- # cljsrn (19)
- # clojure (40)
- # clojure-dev (29)
- # clojure-dusseldorf (2)
- # clojure-greece (21)
- # clojure-italy (16)
- # clojure-russia (7)
- # clojure-spec (31)
- # clojure-uk (70)
- # clojurescript (31)
- # cursive (21)
- # data-science (5)
- # emacs (7)
- # fulcro (23)
- # graphql (4)
- # java (18)
- # jobs (1)
- # jobs-discuss (25)
- # juxt (14)
- # nrepl (2)
- # off-topic (18)
- # om-next (2)
- # onyx (3)
- # re-frame (16)
- # reagent (50)
- # ring-swagger (5)
- # shadow-cljs (70)
- # specter (5)
- # sql (24)
- # tools-deps (16)
- # vim (41)
Okay, update to :ReplantApropos
, all the following are now valid:
:ReplantApropos
- Search all publics (won't load project namespaces automatically)
:ReplantApropos --project
- Search project (will load project namespaces automatically)
:ReplantApropos --project --no-load-project
- ^^ won't load project namespaces though
:ReplantApropos def
- Search for vars with def in the name only
:ReplantApropos --test
Only tests
:ReplantApropos --private
Include private vars in results
:ReplantApropos --project --private
Go crazy 🙂
I also just added support for :ReplantApropos --exclude-meta-key=def --include-meta-key=abc --include-meta-key=jkl
which lets you do funky stuff, like only find privates with --private --include-meta-key private
Particularly that feature is useful with tests. --test --include-meta-key=integration --exclude-meta-key=user --test
Get me integration tests, but not the user ones.
e.g. - https://github.com/clojure-vim/nvim-parinfer.js/tree/master (if you use neovim, and you want to try parinfer instead of paredit) - https://github.com/vim-scripts/paredit.vim
I use parinfer-rust and vim-sexp together (disabling sexp’s insert-mode bindings). A lot of paredit "emerges" with parinfer, but sexp is nice for bigger structural edits.
:ReplantApropos --test
<fzf appears>
'foo.ns
Alt-A
Ctrl-y
Will now run your tests. Unfortunately the test summary won't show, I'm trying to track that down https://github.com/junegunn/fzf/issues/1285@dominicm: does the {CIDER,refactor}-nrepl middleware that replant depends on work with deps.edn?
@tylerw it does indeed, in fact you can use my other vim plugin, vim-jack-in to start it in a compatible way
(You can peek at the source to see how it does it, it's just a fancy clj -Sdeps …
invocation)
i defined <leader>L
and <leader>B
in my vimrc for starting lein repl
and boot repl
. makes it super easy to start a repl in the background whenever i think i'll need it
With replant, & vim-jack-in I'm starting to feel like my tricks are surpassing what I could shove in my init.vim, it's great. Really pleased with this fzf stuff.
@dominicm seems like there’s more energy on Vim tooling that’s relevant to Clojure over the last 18 months, than there has been in years. Despite that, Vim lost ground to both Cursive and Emacs in the State of Clojure survey from 2016 -> 2018. I’ve seen projects where the culture promoted Emacs use, and where the entire team went with Cursive. But I’ve yet to see one where the majority used Vim, even though Vim users vastly outnumber Emacs users in general.
That’s strange to me. It means there’s some Vim bias in the Clojure community that Cursive doesn’t suffer from?
I have a suspicion that spacemacs contributes to some of that, but I don't have anything hard to back that up either. I wonder if the cursive users are primarily those from a java background? We have a strong Emacs culture at JUXT, and the "other" editor is "supported" via me. But junior developers are onboarded into Emacs and don't look back. I think poor documentation contributes too, which I contribute too just as much. https://cider.readthedocs.io/en/latest/ it has a logo, it's googleable, everything.
Fireplace has :help
, which is good, but I think there is a lack of cheatsheets and such to make the getting started easier.
My boss suggested I propose a talk on vim at Clojure x (London). I have been considering doing screencasts of adding features to a sample code base so others can watch my process too. I think this is where vim is lacking, nobody is talking about it! It's probably time that I start talking more about replant, announcements on the mailing list perhaps.
I've never heard of it, I'll Google it as I get ready for bed now. I'd love to give it a go, I don't have a meetup I can attend locally.
Cool. Yeah, I’m sure we can make it work. It’s something we need to be good at anyways.
http://www.reddit.com/r/Clojure/comments/8i3hh0/-/dyp1fvd I suspect this is exactly the same as with vim.