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

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 🙂

🍻 8
dominicm09:05:06

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

dominicm09:05:43

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.

ghadi15:05:08

asking for a friend -- what's the most standard "paredit" for vim?

4
dave15:05:06

i also like vim-sexp, but there are other options for paredit and parinfer

dave15:05:14

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

eraserhd16:05:37

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.

👍 4
dominicm16:05:47

So, hooking up Apropos to testing,, ctrl-t is already taken for :tabe

dominicm16:05:52

What else would make sense?

dominicm17:05:16

Last update of the day, maybe...

dominicm17:05:15

: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

tylerw18:05:27

@dominicm: does the {CIDER,refactor}-nrepl middleware that replant depends on work with deps.edn?

dominicm18:05:45

@tylerw it does indeed, in fact you can use my other vim plugin, vim-jack-in to start it in a compatible way

tylerw18:05:22

cool, I'll check it out

dominicm18:05:03

(You can peek at the source to see how it does it, it's just a fancy clj -Sdeps … invocation)

dave19:05:37

@dominicm btw, vim-jack-in is excellent. i use it all the time

dave19:05:38

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

dominicm19:05:19

@dave I'm glad you like it 🙂 I hadn't considered having mappings, very useful!

dominicm19:05:09

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.

👍 4
dave19:05:32

trying out the latest, greatest features of replant is definitely on my TODO list!

dominicm19:05:54

2018: Year of Vim & Clojure making a landslide return in share?

📈 12
jebberjeb20:05:20

@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.

jebberjeb20:05:45

That’s strange to me. It means there’s some Vim bias in the Clojure community that Cursive doesn’t suffer from?

dominicm20:05:51

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.

dominicm20:05:14

Fireplace has :help, which is good, but I think there is a lack of cheatsheets and such to make the getting started easier.

dominicm20:05:39

I don't get much exposure outside of JUXT though.

jebberjeb20:05:45

That’s a good point.

jebberjeb20:05:56

Cider is marketed quite a bit better. Conference talks, etc.

dominicm20:05:22

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.

👀 4
jebberjeb20:05:45

Give a talk on Virtual Clojure Meetup? 260 members on meetup 🙂

dominicm20:05:15

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.

dominicm20:05:35

I see the organizer is the kind of smart chap who would accept my presentation 😉

😉 4
dominicm20:05:14

The timezone is perhaps a little tricky I'm EDT+5

dominicm20:05:33

But a Friday night might be fine.

jebberjeb20:05:54

Cool. Yeah, I’m sure we can make it work. It’s something we need to be good at anyways.

dominicm20:05:49

I'll try and look at putting together a proposal this weekend.

dominicm21:05:40

http://www.reddit.com/r/Clojure/comments/8i3hh0/-/dyp1fvd I suspect this is exactly the same as with vim.