gabebw / dotfiles

:tulip:
https://gabebw.com
230 stars 23 forks source link

Splitjoin.vim #102

Open gabebw opened 6 years ago

gabebw commented 6 years ago

J on steroids: https://github.com/AndrewRadev/splitjoin.vim

I literally said "WHAT!" out loud when I saw the GIF in the README.

Relevant: https://github.com/thoughtbot/dotfiles/issues/574

teoljungberg commented 6 years ago

I've been really enjoying it, and the maintainer is a champ when it comes to answering issues.

I've also gotten some pretty in your face mappings for it: https://github.com/teoljungberg/dotfiles/blob/master/vim/plugin/settings/splitjoin.vim

gabebw commented 5 years ago

@teoljungberg Is the goal of s:try to prevent failures if Splitjoin isn't installed (eg on a new Vim install, before any vim plugins are installed)?

https://github.com/teoljungberg/dotfiles/blob/9847796de9b709ca1121771d56b8889c9e9dc55f/vimrc#L570-L595

teoljungberg commented 5 years ago

@gabebw That's exactly right.

teoljungberg commented 5 years ago

It also has the benefit that if you can't perform SplitJoin on the current line, it performs the keystroke sequence send to the function call. That's what the tick dance is all about.