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
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
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
* 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
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
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')
" '' ||| | |||
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')
> >" '' ||| | ||| | | |
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
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
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
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
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
>>
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.
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
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
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
16 matches
Mail list logo