Wednesday, April 16, 2014

Re: Reverse search and replace

Am 2014-04-16 15:50, schrieb Ven Tadipatri:
> In Vim, you can do a search and replace with :%s, with a confirm
> option. But if the text you want to replace is the last line in the
> current window, then you can't really see any context for it. Is there
> a way to do a reverse search and replace? Or when a match is found,
> can you have vim show a few lines below it?

You can use Ctrl-E and CTRL-Y to scroll the 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:

Post a Comment