vim

For discussion on all things (neo)vim.
pinealan 2021-04-13T14:43:56.051600Z

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.

๐Ÿ‘ 2
nbardiuk 2021-04-13T14:46:32.051900Z

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

nbardiuk 2021-04-13T14:50:07.052100Z

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

๐Ÿ‘ 1
pinealan 2021-04-13T14:54:05.052400Z

ya itโ€™s not exactly the same, and the cursive style โ€œsmartโ€ eval is really handy when experimenting

nbardiuk 2021-04-13T15:03:24.052800Z

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

2021-04-13T23:58:49.053Z

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

๐Ÿ‘ 1