vim

For discussion on all things (neo)vim.
Hukka 2020-01-23T07:05:10.013200Z

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?

dave 2020-01-23T17:48:57.014800Z

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

👍 2
🤯 1
dominicm 2020-01-23T17:51:17.015200Z

I use sandwich, absolutely love it

dominicm 2020-01-23T17:51:33.015700Z

Being a real operator is a massive point in its favor

dharrigan 2020-01-23T21:06:21.015900Z

I use vim sandwich too

dharrigan 2020-01-23T21:06:31.016200Z

tis the proverbial bee's knees!

nate 2020-01-23T21:48:47.016600Z

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

nate 2020-01-23T21:48:52.016800Z

I must try it out

dave 2020-01-23T21:50:06.017300Z

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

dave 2020-01-23T21:50:58.018300Z

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

dave 2020-01-23T21:53:00.019700Z

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

dave 2020-01-23T21:53:18.020200Z

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

dave 2020-01-23T21:55:14.021300Z

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

dave 2020-01-23T21:55:32.021600Z

it makes trial and error feel less destructive 🙂

tpope 2020-01-23T22:42:03.022700Z

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

Jan K 2020-01-23T22:53:42.023400Z

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