Fork me on GitHub
#vim
<
2017-08-08
>
dominicm11:08:51

Finally figured out the cpaF without moving cursor problem!

dominicm11:08:58

in ftplugin/clojure.vim you can use this:

omap <buffer><expr> aF (v:operator == 'g@' && &operatorfunc =~ "printop") ? "\<Plug>(sexp_outer_top_list)``" : "\<Plug>(sexp_outer_top_list)"
Totally a hack, but what isn't in vimscript? Unfortunately fireplace doesn't set v:operator (I'm not sure it can anyway), so I regex match the private function name it has. Could break if something else uses printop has the name, doubt anything will.

dominicm11:08:55

Should work for af and such also, just needs appropriate tweak. I can probably write something that runs over the list of appropriate mappings in sexp

devth19:08:15

anyone else notice that in longer clojure files, indent breaks after a few hundred (e.g. 400) lines? after that everything gets indented to column 0

devth19:08:27

seems especially so if there are large map literals

devth19:08:23

oh wow. didn't even occur to me that it could be a setting. thanks @dominicm

dominicm19:08:55

I have it set to 0