Fork me on GitHub
#vim
<
2020-01-23
>
Hukka07:01:10

IDE integration. So that vim would have some way of showing what uses a function I'm looking at, instead of running kondo on a separate terminal. But so that should work with LSP clients, like ALE?

dave17:01:57

i saw this today https://joereynoldsaudio.com/2020/01/22/vim-sandwich-is-better-than-surround.html and decided to re-evaluate vim-sandwich. it's awesome! i've switched over from vim-surround and i'm totally happy with it. the best feature is that it provides visual feedback by highlighting the text that you're about to modify by adding, replacing, or deleting containing elements

🤯 4
👍 8
dominicm17:01:17

I use sandwich, absolutely love it

dominicm17:01:33

Being a real operator is a massive point in its favor

dharrigan21:01:21

I use vim sandwich too

dharrigan21:01:31

tis the proverbial bee's knees!

nate21:01:47

woah, something to usurp my most beloved of plugins?!

nate21:01:52

I must try it out

dave21:01:06

i was skeptical, because i was a heavy user of vim-surround. i have to say, vim-sandwich surpassed my expectations

dave21:01:58

my fingers are already starting to figure out the new keybindings. they're fairly similar, you basically just press sa first instead of entering a "verb" followed by s

dave21:01:00

e.g. surround ysiw] => sandwich saiw]

dave21:01:18

it's also possible to use surround-like mappings with sandwich, for the squeamish

dave21:01:14

the visual feedback is super awesome, though. instead of figuring out the entire sequence of keys i need to press, i can press saiw and see if it highlighted the right thing, then think about what i want to surround it with

dave21:01:32

it makes trial and error feel less destructive 🙂

tpope22:01:03

i'd love to abandon surround more than anyone but you can pry my s built-in from my cold dead ring finger

Jan K22:01:42

I just switched 👍 When using the provided surround-like mappings it doesn't seem to mess with s