Re: Execute Function/Ruby Script in Visual Mode

2006-07-02 Thread Yakov Lerner

On 7/2/06, Matthias-Christian Ott [EMAIL PROTECTED] wrote:

Hi,
normally functions or even ruby scripts run in ex mode, but sometimes it
necessary to execute them in visual mode (e.g. using v_s to replace the
selected text). When switching back to visual mode (e.g. via ESC v) the
selection is lost, so it's no a real solution.
Any suggestion regarding to my problem?



gv restores last visual selection

Yakov


Re: Execute Function/Ruby Script in Visual Mode

2006-07-02 Thread Yakov Lerner

On 7/2/06, Yakov Lerner [EMAIL PROTECTED] wrote:

On 7/2/06, Matthias-Christian Ott [EMAIL PROTECTED] wrote:
 Hi,
 normally functions or even ruby scripts run in ex mode, but sometimes it
 necessary to execute them in visual mode (e.g. using v_s to replace the
 selected text). When switching back to visual mode (e.g. via ESC v) the
 selection is lost, so it's no a real solution.
 Any suggestion regarding to my problem?


gv restores last visual selection


to make myself clearer: try gv not *after* Esc v but
*instead of* Esc v.

Yakov