Monday, December 29, 2014

Re: How do I open a new window without losing focus in the current one?

On Monday, December 29, 2014 8:18:54 AM UTC-6, Jeff Baxter wrote:
> If I use
>
> :new [filename]
>
> the file is opened in a split window, but the focus is also shifted there, whereas I want it to stay in the current window.
>
> How can I do that?

There is the :pedit command to open that file in the preview window. But the preview window is special; you probably don't want to do any editing in there, just reading. If that suits your needs, then this is probably what you were looking for.

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