Fork me on GitHub
#vim
<
2019-11-02
>
martinklepsch13:11:50

with fireplace, how do I evaluate the top level form? e.g.`defn`

martinklepsch13:11:45

Also talking about fugitive, is there a way to get the staged changes in the COMMIT_EDITMSG buffer? as in when you use git commit -v

hugo14:11:14

vim-sexp provides a top level form text object that you can evaluate with fireplace's cp

sroelants20:11:48

@martinklepsch Fugitive's commit command (:Gcommit) takes command line arguments, so you can just do a :Gcommit -v

dominicm23:11:39

Fugitive also respects your git config, so if you put the config flag on to make verbose the default, that works. There's also a plugin that opens it in a separate tab.

parrot 4
walterl13:11:02

I'm referring to commit.verbose (`git commit -v`), so thanks to @martinklepsch too. I used to open the diff in another Vim window by doing dv on the "Staged changes" line of :Gstatus, but this is even better.

walterl13:11:46

For those who are unsure how to configure it:

$ grep -B 1 verbose ~/.gitconfig 
[commit]
	verbose = true