Wednesday, August 3, 2011

Re: How to find visually selected string in different file

Ashwin V <vaghasia.ashwin@gmail.com> [11-08-04 06:24]:
> Hi,
> I am trying to
> In a open file sim.log.
> 1) Visually select a string ( with white space)
> 2) Split open ~/project/string_file_list and Search this string in
> this new open file.
> 3) map this operation to some key binding.
>
> I could not find any help on web related to this.
>
> Thanks,
> Ashiwn.
>
> --
> 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
>

Hi Ashiwn,

may be this could be half of the way...
1) in sim.log visually select a string
2) press y (yank the text into the nameless register
3) split open the other file
5) press /CTRL-R"<ENTER>

HTH!

Best regards,
mcc

--
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

No comments:

Post a Comment