vim

Chase 2023-10-14T17:21:13.770239Z

Hey folks, I'm still looking for a great way to align map values (and things like let bindings) vertically. A lot of other clojure editors have this capability (maybe all the others?) but I haven't found a great solution in vim yet.

Chase 2023-10-14T17:22:55.607749Z

I tried the method highlighted here before with `vim-easyalign but it never quite worked right. Maybe it was parinfer or sexp interfering or something but not sure why that would be the case now that I think about it: https://medium.com/@adamneilson/vim-support-for-vertically-aligning-values-in-clojure-c25406cc58f0

Chase 2023-10-14T17:27:59.937779Z

Maybe I'm not using the right commands with that plugin because the one's given in the article just put me in a visual mode but don't do anything after

2023-10-14T20:38:01.875859Z

when I looked into this recently my conclusion was that I don't think there is a good way to do it with vim 🤷. I think the next best thing might be running zprint as an external command since I believe that can align map values/let bindings.

sheluchin 2023-10-14T20:54:39.714069Z

Have you tried https://github.com/junegunn/vim-easy-align? There are some Clojure tests in the repo https://github.com/search?q=repo%3Ajunegunn%2Fvim-easy-align%20clojure&type=code

2023-10-14T21:09:19.010379Z

yeah, it was pretty unreliable in my experience

2023-10-14T21:11:24.239919Z

(for S-expressions at least; I'm sure it's good at what it was built for)