Fork me on GitHub
#vim
<
2019-10-16
>
martinklepsch08:10:29

Thanks, gave vim-sexp a try and having my beloved slurp back is a nice side effect 😄

martinklepsch08:10:50

More questions 1. After slurping the modified forms aren’t re-indented, is there a way to auto indent after slurp? 2. If you slurp in Emacs’ smartparens the cursor stays where it was, sometimes the jumps can be quite big. Has this bothered you too? 3. What do you use for fuzzy search? I’m reasonably happy with fzf.vim’s :Rg :Gfiles and so on but just noticed that at least :Rg also matches filenames which is a bit strange

walterl12:10:58

3. Yeah. I switched from Ctrl-P to fzf.vim recently; works quite well for me. My fzf mappings: https://github.com/walterl/dotfiles/blob/master/nvim/init.vim#L202

hugo09:10:26

=- reindents the top level form.

hugo09:10:12

== reindents count surrounding lists (`:help sexp_indent`)

hugo09:10:51

but I suppose these aren't automatic things.

dominicm09:10:16

nmap >) >)==

martinklepsch12:10:49

@clojurians-slack100I am using that 👍

👍 4
martinklepsch13:10:30

I just saw that you also set that if it’s available 🙂

walterl13:10:30

I just copy-pasted that whole block from... somewhere. Thanks for that link. I can probably remove that block anyway 👍

martinklepsch13:10:51

the termguicolors thing definitely makes a difference

martinklepsch13:10:25

Unfortunately Dom’s nmap >) >)== doesn’t seem to work but I haven’t yet figured out why

martinklepsch13:10:37

busy adding fold markers to my config lol

martinklepsch13:10:07

set foldmethod=indent
autocmd FileType vim setlocal foldmethod=marker
I have something like this in my vim vimrc and when I source my config with :so $MYVIMRC wile having the config open I end up with foldmethod being set to indent. Is there a way to avoid this?

dominicm13:10:54

Try using an ftplugin instead

dominicm13:10:18

that is, create, ~/.config/nvim/ftplugin/vim.vim and put setlocal fdm=marker in it

martinklepsch13:10:57

Are ftplugins “the better way” of handling language level configuration?

dave13:10:32

if you run :e, does it set foldmethod back to marker?

dave14:10:54

ok, cool! so you could do :so $YOURVIMRC | e

dominicm16:10:15

Mine was half an implementation, that's a recursive mapping. The idea is to take the default mapping for >) and append == on the end

Olical19:10:31

Posted in #conjure but thought people in here might find it interesting too: Worked out how to have my blog rebuild as I change files using my development prepl, no JVM startup! fd | entr bash -c 'echo "(require \'blog.render) (blog.render/render!) :repl/quit" | netcat localhost $(cat .prepl-port)'

🎉 4
Olical19:10:43

Where fd is https://github.com/sharkdp/fd and entr is http://eradman.com/entrproject/. It sends some code to my development prepl every time a source file changes! @dharrigan and @dave showed me the aforementioned tools, I was just using watch at first, it works so well! I think @dave realised he could use it for test running too which is sweet.