This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-02
Channels
- # announcements (21)
- # babashka (1)
- # beginners (67)
- # calva (18)
- # cider (21)
- # clj-kondo (109)
- # cljs-dev (3)
- # clojure (129)
- # clojure-spec (15)
- # clojure-uk (30)
- # clojurescript (3)
- # datomic (2)
- # graalvm (8)
- # graphql (1)
- # juxt (1)
- # malli (28)
- # off-topic (46)
- # reitit (5)
- # rewrite-clj (33)
- # ring-swagger (2)
- # shadow-cljs (199)
- # vim (9)
with fireplace, how do I evaluate the top level form? e.g.`defn`
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
vim-sexp provides a top level form text object that you can evaluate with fireplace's cp
@martinklepsch Fugitive's commit command (:Gcommit) takes command line arguments, so you can just do a :Gcommit -v
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.

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.