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

rb and vim #15

Open
andyl opened this issue Aug 18, 2018 · 1 comment
Open

rb and vim #15

andyl opened this issue Aug 18, 2018 · 1 comment

Comments

@andyl
Copy link

andyl commented Aug 18, 2018

I've done some successful experiments using rb with vim. Here's some examples:

:'<,'>!rb -l upcase
:'<,'>!rb sort
:'<,'>!rb sort.reverse
:'<,'>!rb "select {|l| l.chomp.strip.to_i > 44}"

Any other vim users out there?

@benknoble
Copy link

Case changing can be done with builtin operator g~, gu, gU.

Sort with filter operator ! (!<motion>sort<CR>).

But for something more complex, could be useful!

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

No branches or pull requests

3 participants