On 2014-04-16 16:10, Christian Brabandt wrote: > 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.
Or, you can set 'scrolloff' to some super-high number: :set scrolloff=999 which will keep the cursor centered on the screen. Seems to keep it centered when doing :s commands. -tim -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
