Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitjoin.vim #102

Open
gabebw opened this issue Feb 3, 2018 · 4 comments
Open

Splitjoin.vim #102

gabebw opened this issue Feb 3, 2018 · 4 comments
Labels

Comments

@gabebw
Copy link
Owner

gabebw commented Feb 3, 2018

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

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

Relevant: thoughtbot/dotfiles#574

@gabebw gabebw added Vim tmux and removed tmux labels Mar 20, 2018
@teoljungberg
Copy link

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
Copy link
Owner Author

gabebw commented Jun 27, 2019

@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
Copy link

@gabebw That's exactly right.

@teoljungberg
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants