Wednesday, April 16, 2014

Reverse search and replace

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?

Thanks,
Ven

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