Tagged Questions
1
vote
2answers
79 views
Edit multiple files in 1 vim buffer
I'm making a vim script to take notes, and it should be tag aware.
So when I add a note it should appear under all the correct sections like this:
To avoid making lots of copies of the same text ...
3
votes
1answer
57 views
Is there a way to use Gems in Vim's 'embedded' Ruby?
I'm trying to use the tinder gem from inside Vim. I'd like to be able to write to the Vim buffers, so I need to use Vim's embedded Ruby using :ruby as opposed to externally calling !ruby.
I have run ...
4
votes
2answers
75 views
Can I set Vim's 'embedded' ruby path?
When I run:
:ruby print VERSION
in Vim, I get 1.8.7.
I have 1.9.3 installed and I'd like to use that instead. Is there a way to change it?
Would it use the same Gem paths?
I'm not talking about ...
3
votes
1answer
150 views
How does asynchronous Ruby work in Vim?
If you compile a recent version of Vim with +ruby, you can use the :ruby command inside Vim.
What's happening 'under the hood' when I run some asynchronous Ruby code?
For example:
:ruby <<EOS
...
1
vote
1answer
85 views
How to quick refactor to newer Ruby syntax using Vim script?
I would like to quick refactor current line ex:
Subscription.create(:user => @user, :app => this_app, :verified => true, :approved => true)
to
Subscription.create(user: @user,app: ...
2
votes
2answers
138 views
Using vim to generate tables of integer-based random numbers?
There are times when I want to generate random numbers (in a free space-delimited format), but I want to be able to specify the number of rows and columns.
I see some motivation from here to generate ...
16
votes
1answer
437 views
Hacking rails.vim to work with Padrino
I recently cloned rails.vim (vim-rails) hoping to modify it to work with Padrino projects.
Currently I'm trying to get the Rcontroller command to look not only in app/controllers (perfect for rails) ...