Fork me on GitHub
#vim
<
2016-10-04
>
chrisetheridge06:10:09

i need some help regarding vim and strctural editing in clojure

chrisetheridge06:10:43

so i have this:

(if true
    (when x
         (do-y x))

chrisetheridge06:10:30

how would i remove the wrapping (if true (when …)) and just leave the (do-y x) part?

dominicm08:10:27

@biscuitpants if using vim-sexp: 2<localleader>o

dominicm08:10:19

:help vim-sexp is pretty long, but worth a read

chrisetheridge08:10:38

ah, thank you so much @dominicm. gonna give it a try now

chrisetheridge09:10:11

ah that works brilliantly!

nwjsmith18:10:51

@dominicm I saw in your comment here: https://github.com/bhauman/lein-figwheel/pull/476 that you were able to get a ClojureScript REPL working w/ :Piggieback (figwheel-sidecar.repl-api/repl-env)

nwjsmith18:10:05

But I can't for the life of me get that to work

nwjsmith18:10:48

The steps I'm taking: 1. From my project.clj file launch a repl with :Console 2. cqc to open a quasi repl 3. (use 'figwheel-sidecar.repl-api) 4. (start-figwheel!) 5. Then I run the command :Piggieback (repl-env)

nwjsmith19:10:02

But I get no output, the editor just seems to hang there

dominicm19:10:37

@nwjsmith have you opened figwheel in the browser?

nwjsmith19:10:59

That worked

nwjsmith19:10:14

Thanks! sorry for the @

dominicm19:10:56

@nwjsmith please always @ me. Sometimes I will take time to reply if it's not immediately obvious.

dominicm19:10:48

This is unfortunately the design of fireplace.

dominicm19:10:10

@nwjsmith I'd be grateful for any bug reports. I've not tested hard in a production system. I'm going to have a bit of time before XT16 to work on stuff like that.