Friday, January 27, 2017

Re: How to open another file and go to a search pattern

On Fri, Jan 27, 2017 at 10:58:25PM +0300, Nikolay Aleksandrovich Pavlov wrote:
> If you want to avoid spaces, do use concat.

Thanks, that helped.

> let @/ = searchpat
> normal! gg0n

Thanks. This has solved the problem. Only one more thing I wish is if it
could highlight the pattern as well. Just hitting "n" once highlights it,
though wish it was automatic.

Will incorporate other suggested improvements as well. Thanks for those.

Mayuresh.

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

Post a Comment