Re: Search for the visually select text

2013-11-15 Thread John Little
There's an article in the Vim wiki with almost the same title as your post: http://vim.wikia.com/wiki/Search_for_visually_selected_text Regards, John Little -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For mor

Re: Search for the visually select text

2013-11-15 Thread Bee
the '\V' at the beginning means VERY nomagic, so only '\' is magic to find a '\n' (newline) the '\' needs to be escaped as '\\n' being able to find across a newline is important to me. Bill -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the te

Re: Search for the visually select text

2013-11-15 Thread Bee
the '/V' means VERY nomagic, only \ is magic so to find a \n the '\' needs to be escaped as '\\n' and being able to find across a newline is important to me. Bill -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For

Re: Search for the visually select text -> /"

2013-11-15 Thread Sven Guckes
* Paolo Bolzoni [2013-11-15 23:31]: > Dear list, seldom I need to search specific part of text > that are not simply the current word (where * is handy). > And I instinctively select the part visually, only to > notice I do not know how to search for it in the whole text. > > Example, assuming the

Re: Search for the visually select text

2013-11-15 Thread Gary Johnson
On 2013-11-15, BPJ wrote: > 2013-11-15 22:54, Gary Johnson skrev: > >On 2013-11-15, BPJ wrote: > >>2013-11-15 17:45, Bee skrev: > > > >>>nnoremap * g* > >>>" multi line search -- selection literal :help c_ > >>>" substitute({expr}, {pat}, {sub}, {flags}) > >>>vnoremap * > >>>y/\c\V=substitute(esca

Re: Search for the visually select text

2013-11-15 Thread BPJ
2013-11-15 22:54, Gary Johnson skrev: On 2013-11-15, BPJ wrote: 2013-11-15 17:45, Bee skrev: nnoremap * g* " multi line search -- selection literal :help c_ " substitute({expr}, {pat}, {sub}, {flags}) vnoremap * y/\c\V=substitute(escape(@@,'/\'),'\n','\\n','g') " '' ||| | |||

Re: Search for the visually select text

2013-11-15 Thread Gary Johnson
On 2013-11-15, BPJ wrote: > 2013-11-15 17:45, Bee skrev: > >nnoremap * g* > >" multi line search -- selection literal :help c_ > >" substitute({expr}, {pat}, {sub}, {flags}) > >vnoremap * > >y/\c\V=substitute(escape(@@,'/\'),'\n','\\n','g') > >" '' ||| | ||| | | |

Re: Search for the visually select text

2013-11-15 Thread BPJ
2013-11-15 17:45, Bee skrev: On Friday, November 15, 2013 1:42:07 AM UTC-8, Paolo Bolzoni wrote: seldom I need to search specific part of text that are not simply the current word (where * is handy). And I instinctively select the part visually, only to notice I do not know how to search for it

Re: Search for the visually select text

2013-11-15 Thread Tim Chase
On 2013-11-15 10:26, tooth pik wrote: > @* is the default register for yanks and puts Just for the record, that should be @" not @* unless you have 'clipboard' settings that alter the default behavior. -tim -- -- You received this message from the "vim_use" maillist. Do not top-post! Type yo

Re: Fwd: Search for the visually select text

2013-11-15 Thread LCD 47
On 15 November 2013, Paolo Bolzoni wrote: > Dear list, > seldom I need to search specific part of text that are not simply the > current word (where * is handy). And I instinctively select the part > visually, only to notice I do not know how to search for it in the > whole text. > > Example, assu

Re: Search for the visually select text

2013-11-15 Thread Bee
On Friday, November 15, 2013 1:42:07 AM UTC-8, Paolo Bolzoni wrote: > seldom I need to search specific part of text that are not simply the current > word (where * is handy). And I instinctively select the part visually, only to > notice I do not know how to search for it in the whole text. > > Ex

Re: Fwd: Search for the visually select text

2013-11-15 Thread Karthick Gururaj
On Fri, Nov 15, 2013 at 9:56 PM, tooth pik wrote: > On Fri, Nov 15, 2013 at 04:44:50PM +0100, Paolo Bolzoni wrote: >> Dear list, >> seldom I need to search specific part of text that are not simply the current >> word (where * is handy). And I instinctively select the part visually, only >> to >>

Re: Fwd: Search for the visually select text

2013-11-15 Thread tooth pik
On Fri, Nov 15, 2013 at 04:44:50PM +0100, Paolo Bolzoni wrote: > Dear list, > seldom I need to search specific part of text that are not simply the current > word (where * is handy). And I instinctively select the part visually, only to > notice I do not know how to search for it in the whole text.

Re: Search for the visually select text

2013-11-15 Thread Shlomi Fish
Hi Paolo, On Fri, 15 Nov 2013 10:42:07 +0100 Paolo Bolzoni wrote: > Dear list, > seldom I need to search specific part of text that are not simply the current > word (where * is handy). And I instinctively select the part visually, only to > notice I do not know how to search for it in the whole

Fwd: Search for the visually select text

2013-11-15 Thread Paolo Bolzoni
Dear list, seldom I need to search specific part of text that are not simply the current word (where * is handy). And I instinctively select the part visually, only to notice I do not know how to search for it in the whole text. Example, assuming the caret is on the beginning of the sequence I wan

Search for the visually select text

2013-11-15 Thread Paolo Bolzoni
Dear list, seldom I need to search specific part of text that are not simply the current word (where * is handy). And I instinctively select the part visually, only to notice I do not know how to search for it in the whole text. Example, assuming the caret is on the beginning of the sequence I wan