vim-fireplace icon indicating copy to clipboard operation
vim-fireplace copied to clipboard

Add a way to expand macros in the buffer

Open gcapizzi opened this issue 11 years ago • 4 comments

I'd love to have a way to expand macros in the buffer, just like c! does with code evaluation. I have no idea of a good mapping though.

gcapizzi avatar Mar 29 '14 14:03 gcapizzi

Do you have a particular use case? I actually found c! to be less useful than I expected.

tpope avatar Mar 29 '14 16:03 tpope

Do you have a particular use case?

I'm preparing a live coding presentation :)

I actually found c! to be less useful than I expected.

Maybe inserting the result of the evaluation as a comment would be better?

gcapizzi avatar Mar 29 '14 17:03 gcapizzi

Maybe, but that also raises the question of where to put the comment.

Presentation is an interesting use case. I'll keep it in mind.

tpope avatar Mar 29 '14 18:03 tpope

This is what I have been using: https://github.com/Deraen/dotfiles/blob/d1becc7e0ae2161de1efefaebb6616244efb050e/.vim/after/plugin/fireplace.vim Screenshot of use-case

I found that during presentations I most often just evaluate outermost forms and in that case it's logical to add comment on a new line after the form.

Deraen avatar Jul 20 '14 09:07 Deraen