Thursday, January 8, 2015

Re: restrict searches by window

kamaraju kusumanchi wrote:
> Is it possible to restrict searches by window? For example, if I open
> two files by
>
> vim -o file1.txt file2.txt
>
> I want to search for expr1 in file1.txt, expr2 in file2.txt. The
> hlsearch option should work so that it will highlight different words
> in different buffers. Is anything like that possible currently?
>
> I am using vim 7.4.488 on Debian Jessie.
>
Use :match instead of hlsearch:

:match Search /pattern/

Regards,
Charles Campbell

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: