Tuesday, January 6, 2015

Re: restrict searches by window

Am 2015-01-07 06:15, schrieb kamaraju kusumanchi:
> 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.

Not possible. You could use matchadd() family of functions
to highlight different things per window.

Best,
Christian

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