Fork me on GitHub
#clojure-uk
<
2019-04-29
>
dharrigan07:04:37

Morning one and all!

dharrigan07:04:24

@dominicm, you're a vim(er) 😉 Are you using fireplace?

dharrigan07:04:14

Kewl, me too. I was going to ask a question but figured out a way. The question was 'f you have a inner form, like this: (do-something (a-function "foo")) and you wanted to delete just the "do-something" form, to leave (a-function "foo") is there a quick easy way? But I figured it out 🙂

dominicm08:04:17

vim-sexp <localleader>o

Olical10:04:41

:h sexp always makes me realise how little of it I tend to use. Raise, slurp and barf are common but there's some nice ones for "wrap in parens and go into insert mode at the front".

dharrigan10:04:14

I'm still struggling with slurpage and barfage with vim

dharrigan10:04:25

I just can't seem to get it to do what I want (easily and fluidly)

dharrigan10:04:33

It's most likely down to lack of experience.

dominicm10:04:45

I picked up one command a week, I guess I'm quite proficient now

dominicm10:04:02

@dharrigan what do you struggle with?

dharrigan10:04:17

If you don't mind, I can show you?

dharrigan10:04:39

but I still can't seem to figure it out

dharrigan10:04:57

(in the sense, it doesn't do what I expect it to do)

dharrigan10:04:36

I know that ([config]) is wrong

dharrigan10:04:41

I just typed it in

dharrigan10:04:08

so now I want to slurp everything in the (let into the ending ')' in the argument

dharrigan10:04:11

but I can't seem to do it

dharrigan10:04:23

I tried '<)' and all the others

Olical10:04:49

Do you mean like merge those two lets?

dharrigan10:04:04

no, I mean, end up like this...

Olical10:04:29

Oh I seeee

Olical10:04:52

so yeah, you'd put your cursor on the closing paren of config]) and then slurp

Olical10:04:26

If you put it any further in it's trying to slurp with the ]. There's nothing else in that form so it's a noop. If you slurp on the outer list it'll slurp the let.

dharrigan10:04:17

still struggling, vim not playing ball. I'll figure it out...

Olical10:04:42

Should be shift+alt+L I think while you're on that last paren

Olical10:04:52

But yeah, the :help sexp docs are very good

dominicm10:04:18

Give us an example, you might figure it out in the process

dharrigan10:04:46

I feel bad troubling you guys with this

dharrigan10:04:51

I mean, you're busy

dharrigan10:04:27

Perhaps I should move this to #vim anyhoo 🙂

dominicm11:04:49

Missed your messages, oops