vim

For discussion on all things (neo)vim.
2021-05-19T14:38:28.005600Z

as long as I indent the whole form, I've never had an issue (though my preferences might be different from others and I'm sure there's corner cases I avoid by restricting where I put line breaks)

Aron 2021-05-19T14:54:43.005800Z

I think I found the culprit, and it was my setup, I had another extension enabled that auto-changed shiftwidth, because I used to edit js files, and for some reason in certain cljs files it set it to 10... so when I was indenting, it ended up all weird and unreasonable. Sorry for faulting sexp for this, clearly it had nothing to do with it.

Aron 2021-05-19T14:55:36.006Z

I removed the plugin and now I started using == because easy to remember, I have no idea how indentation works yet, but it makes the code follow the current parens, so I can change the parens then run == again and it kinda works.

dominicm 2021-05-19T15:07:14.006200Z

Oops, I did mean incorrect yes 😄

dominicm 2021-05-19T15:08:17.006400Z

Parinfer is great for certain kinds of operation 🙂 I really like the vim-sexp model as it gives me more re-use & power though. There's just different properties to each of them really.

Aron 2021-05-19T15:16:25.006600Z

What I started to realize is just how many steps I have to step back before I can use these mappings, lots of things that I just do automatically relied on the editor formatting my code from incorrect to correct, or giving me an error where it was incorrect. Before cljs I wrote mostly js and I used to just copy paste code and data between files, often commenting out several lines and only after a bunch of these changes to a file started I fixing up the syntax errors.

Aron 2021-05-19T15:17:42.006800Z

Now I have to think first about how to format the stuff before I move it into the file. I can see the benefits, but ultimately I like the relaxed paradigm more.

2021-05-19T15:21:36.007Z

I don't know your setup, but for me == only looks at the line directly above, and when I'm doing things like renesting forms I need =- which fixes the entire top level form

2021-05-19T15:37:16.007300Z

I don't use any paren matching . Does that make me a masochist ?

1😂1🙈4
Aron 2021-05-19T15:52:17.007500Z

more like the opposite 😛

Aron 2021-05-19T15:52:30.007700Z

what do you use

1
Aron 2021-05-19T15:53:27.007800Z

I think it was just easier to remember ==, I will try to use =i

dave 2021-05-19T18:51:55.008300Z

I had that problem a long time ago, but haven't noticed it anytime recently. I think (and have read that) they've fixed it. I'm also in the habit of leaning heavily on git when trying experiments, e.g. I'll make a branch to try out an idea, and if it doesn't work out I just switch back to the branch I was on before. I rarely need to undo more than a few times in a row.

Aron 2021-05-19T19:04:06.008600Z

They haven't fixed it for me, this is why I am learning these other mappings. Every couple of hours at least I had to turn parinfer off, do the undo/redo i wanted, then turn it back on. Otherwise it just kept repeating a no-op.