vim

For discussion on all things (neo)vim.
Noah Moss 2021-06-26T17:55:54.118300Z

Any clean/context-aware solutions for inserting single quotes or backticks if you have auto-pairs installed? I’ve been doing '<esc>lx but it’s getting a bit annoying. Edit: to clarify, single single-quotes or backticks

dave 2021-06-28T14:08:25.121700Z

I use parinfer-rust.

dave 2021-06-28T14:08:33.121900Z

https://github.com/eraserhd/parinfer-rust

Noah Moss 2021-06-28T17:38:46.122500Z

@dave cool, thanks, that works well

🎉 1
dave 2021-06-26T18:48:18.118600Z

I configured auto pairs not to pair single quotes or backticks when in a Lisp filetype. https://github.com/daveyarwood/dotfiles/blob/2d0a5f3c204932a2898913a772df210058b25897/vim/custom/500-plugins-config.vim (Then I ended up disabling autopairs altogether for Lisp, since it conflicts with parinfer)

dave 2021-06-26T18:51:46.118900Z

Argh, I meant to link to the specific line number. On mobile at the moment. Search for auto pairs and you'll find what I'm talking about :)

Noah Moss 2021-06-26T18:54:59.119100Z

found it, thanks! I guess that’s a good enough solution, although maybe I should take a look at parinfer (I’ve been using vim-sexp + auto-pairs so far)

Noah Moss 2021-06-26T18:55:13.119300Z

do you use this version? https://github.com/bhurlow/vim-parinfer

Noah Moss 2021-06-26T18:57:21.119600Z

wait, I didn’t realize vim-sexp does automatic paren/bracket pairing too. that’s perfect