What I would like to acheive -
"Interactive" Calculator in Vim using Ruby

1. Run a ruby script on a text selection in a buffer.
2. Ruby script upon parsing the selection, prompts the user for more
arguments or asks for confirmation.
3. Once the user confirms the calculation, the result is either pasted
into the buffer or returned in a new buffer.

Example

1. User selects a date Thu Jan 20 15:57:21 EST 2011
2. <F5> passes the selection to a ruby script
3. Script prompts the user to enter a calculation
4. User enters -2w3d5h23m (2 weeks, 3 days, 5 hours, 23 minutes)
5. Script runs the calculation and returns the result replacing the
selection

Using Conqueshell, I could make ruby do the calculation prompt the
user and return results in the same buffer.
Am wondering if its possible to do something like this in Vim so
prompts from ruby are shown in one buffer and results are sent to
another buffer?

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to