vim

For discussion on all things (neo)vim.
NoahTheDuke 2020-05-18T16:09:01.107800Z

hey all, i'd love to use clojure.walk's macroexpand-all in vim-iced. right now, <leader>em does normal single macro-expansion, which is helpful, but if i want see nested forms expanded, i have to move the cursor to the window and use it again, losing the context

NoahTheDuke 2020-05-18T16:10:03.109Z

requiring clojure.walk and then wrapping the form in (macroexpand-all) lets me evaluate it, but then i only see the expansion in the buffer line, which is unreadable and sometimes too big to see all of

2020-05-18T16:11:57.109100Z

what about as a hack, adding a pprint, then going ot the stdout buffer?

2020-05-18T16:13:51.109700Z

There's

n       <Leader>eM   <Plug>(iced_macroexpand_outer_list)

2020-05-18T16:14:10.110100Z

Have you tried it?

2020-05-18T16:15:41.111100Z

I'd expect eM to be just like em except grabbing the form differently -no, that's wrong

NoahTheDuke 2020-05-18T16:16:11.112Z

lol the docs have them both as lowercase m, so i didn't realize there was a difference

NoahTheDuke 2020-05-18T16:16:25.112400Z

NoahTheDuke 2020-05-18T16:16:46.113300Z

yep, that works

NoahTheDuke 2020-05-18T16:16:55.113600Z

sheeeeeeeit, this is awesome

NoahTheDuke 2020-05-18T16:16:59.113900Z

thank you

2020-05-18T16:17:55.114900Z

my biggest annoyance with IDE-like setups is the ephemerality of results, so I often search for the option to log to a buffer instead of / as well as at the minibuffer or inline in a tooltip

2020-05-18T16:17:56.115100Z

@nbtheduke that's strange, you might consider to create a pull request to fix it.

NoahTheDuke 2020-05-18T16:18:39.115300Z

yeah, it's something i miss from my meager attempts at learning emacs: i love slime's dedicated repl buffer

NoahTheDuke 2020-05-18T16:18:58.115700Z

cool, i'll whip one up for you

NoahTheDuke 2020-05-18T16:23:56.116200Z

do i have to run anything to convert adoc to html? or does that happen live on the site?

NoahTheDuke 2020-05-18T16:24:13.116500Z

never heard of this file format before

2020-05-18T16:25:06.116700Z

Honestly I don't know. I think it is converted by some kind of GitHub workflow.

👍 1
2020-05-18T16:25:43.117Z

I think you could just fix a function name in https://github.com/liquidz/vim-iced/blob/95c5c3572ffb8fffec727e2a42fe45e7fea0dc12/doc/pages/macro.adoc and open a pull request.

👍 1
2020-05-18T16:26:28.117300Z

The format is called asciidoc

2020-05-18T16:36:45.118Z

I end up using :term lein repl :connect NNNN so that I can have a real repl for some commands, while using shortcuts for eg. require / reload / reset where I won't care about non-error return values

2020-05-18T16:37:01.118200Z

(:term is nvim only)

NoahTheDuke 2020-05-18T16:39:32.118400Z

that sounds nice. i might have to try neovim

NoahTheDuke 2020-05-18T16:39:50.118600Z

good find on the workflow

2020-05-18T16:40:29.118900Z

the one gotcha is that terminal buffers are so fully tty compatible that none of your shortcuts work (there's a new keymap, and a single C-\C-n binding to escape terminal mode)