This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-01
Channels
- # aleph (7)
- # bangalore-clj (1)
- # beginners (89)
- # boot (5)
- # clara (21)
- # cljs-dev (2)
- # cljsrn (57)
- # clojure (58)
- # clojure-austin (1)
- # clojure-conj (1)
- # clojure-italy (5)
- # clojure-losangeles (3)
- # clojure-russia (4)
- # clojure-sanfrancisco (4)
- # clojure-spec (31)
- # clojure-uk (67)
- # clojurebridge (4)
- # clojurescript (56)
- # cursive (92)
- # data-science (4)
- # datomic (15)
- # emacs (23)
- # events (1)
- # fulcro (121)
- # gorilla (2)
- # jobs-discuss (1)
- # juxt (1)
- # lambdaisland (6)
- # lumo (13)
- # off-topic (11)
- # om (1)
- # onyx (17)
- # overtone (5)
- # parinfer (9)
- # planck (3)
- # re-frame (21)
- # reagent (95)
- # ring-swagger (7)
- # spacemacs (58)
- # vim (13)
- # yada (2)
This is the only “vim” specific room, is it OK to ask general vim
questions here? Or is there a better place?
My question: How to get gq
to format a doc string to wrap after editing?
I have these settings right now:
au BufRead,BufNewFile *.clj setlocal textwidth=78
autocmd Filetype clojure setlocal textwidth=78
@defndaines those look like they do the same thing?
@defndaines Using vim-sexp, I use gwie
to get it to reformat my docstring within the textwidth
Cool, I’ll check that out.
gw
is like gq
, but it doesn't use the defined function. Vim-fireplace now attempts to format using cljfmt, which apparently doesn't care about width of docstring.
I’m just getting the hang of vim-fireplace, so unaware of cljfmt.
The gwie
worked exactly as expected, thanks. Gonna have to do some reading to take advantage of all the other features. Seems like vim-sexp
may be an alternative to paredit
, which I’ve been trying to use as of late. ( https://github.com/kovisoft/paredit )
Thanks. I’ll give it a spin.