Fork me on GitHub
#vim
<
2021-04-13
>
pinealan14:04:56

Found a way to mimic the cursive behaviour where an eval-outer-top-list when inside a comment form would https://github.com/pinealan/dotfiles/blob/master/vim/.vim/after/ftplugin/clojure.vim#L54. Not aware of other solutions out there so thought I’d share it here.

👍 4
nbardiuk14:04:32

looks like you are using iced - it has an option to eval inside comments https://liquidz.github.io/vim-iced/#eval_inside_comment

nbardiuk14:04:07

oh, I've just realised the difference. Your implementation evaluates only current second-top form instead of all forms inside the comment

👍 2
pinealan14:04:05

ya it’s not exactly the same, and the cursive style “smart” eval is really handy when experimenting

nbardiuk15:04:24

yes, it is very handy to eval forms inside comment one by one

uochan23:04:49

@U0112ACBNRM Cool! It's so handy. I can merge if you create a pull request.

👍 3
pinealan01:04:30

awesome I’m glad you find it useful, will find some time this week to make a PR

❤️ 3