Re: Searching for selected text

2006-10-02 Thread Charles E Campbell Jr
Bram Moolenaar wrote: Matt Mzyzik wrote: I don't like this one more, but it's a good alternative: g/ g? Also, I feel that one day might do something in visual; at least visual line mode. g? is already used for rot13 encoding. g/ is scheduled to be used to search

Re: Searching for selected text

2006-10-01 Thread Yakov Lerner
On 9/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching for a pattern. Since we might

Re: Searching for selected text

2006-10-01 Thread Bram Moolenaar
Tony Mechelynck wrote: Bram Moolenaar wrote: Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching for a pattern. Since we

Re: Searching for selected text

2006-10-01 Thread Bram Moolenaar
Yakov Lerner wrote: On 9/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching

Searching for selected text

2006-09-30 Thread Bram Moolenaar
Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching for a pattern. Since we might need more commands in Visual mode later, and we only

Re: Searching for selected text

2006-09-30 Thread Georg Dahn
Hi! Bram Moolenaar wrote: / search for the Visually selected text forward ? same, backward Is there a good alternative? I think, this is ok. For the moment I have the following lines in my vimrc file (I found the original code in a vim tip): --- 8 --- Search in Visual and

Re: Searching for selected text

2006-09-30 Thread mzyzik
I don't like this one more, but it's a good alternative: g/ g? Also, I feel that one day might do something in visual; at least visual line mode. --Matt On Sat, Sep 30, 2006 at 01:37:59PM +0200, Bram Moolenaar wrote: Sometimes people ask me for a command to search for the

Re: Searching for selected text

2006-09-30 Thread Bram Moolenaar
Matt Mzyzik wrote: I don't like this one more, but it's a good alternative: g/ g? Also, I feel that one day might do something in visual; at least visual line mode. g? is already used for rot13 encoding. g/ is scheduled to be used to search inside the selected area -- Eye

Re: Searching for selected text

2006-09-30 Thread Nikolai Weibull
On 9/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: g/ is scheduled to be used to search inside the selected area Hehe, I was just about to ask if such a command wouldn't be useful :-) nikolai

Re: Searching for selected text

2006-09-30 Thread Yakov Lerner
On 9/30/06, Georg Dahn [EMAIL PROTECTED] scribbled: Hi! Bram Moolenaar wrote: / search for the Visually selected text forward ? same, backward Is there a good alternative? I think, this is ok. For the moment I have the following lines ... vnoremap expr *

Re: Searching for selected text

2006-09-30 Thread Yakov Lerner
On 9/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching for a pattern. Since we might

Re: Searching for selected text

2006-09-30 Thread Bram Moolenaar
Yakov Lerner wrote: On 9/30/06, Bram Moolenaar [EMAIL PROTECTED] wrote: Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching

Re: Searching for selected text

2006-09-30 Thread A.J.Mechelynck
Bram Moolenaar wrote: Sometimes people ask me for a command to search for the text that is currently visually selected. You could add a mapping for the '/' key, but then you lose the possibility to extend the visual area by searching for a pattern. Since we might need more commands in Visual