Friday, August 10, 2012

Re: :E and current window

On Fri, Aug 10, 2012 at 5:10 PM, Gary Johnson <garyjohn@spocom.com> wrote:
On 2012-08-10, Mark Volkmann wrote:
> On Fri, Aug 10, 2012 at 4:06 PM, Tony Mechelynck wrote:
>
>     On 10/08/12 20:38, Mark Volkmann wrote:
>
>         Sometimes when I have split windows and press :E to explore the file
>         system, the cursor jumps to a different window than the one I was in
>         when I pressed :E. This is very frustrating because I have to move back
>         to the original window to select a file. What could cause this?
>
>
>     According to ":help :Explore" (quoted below), the directory browser will
>     take over the current window if the file hasn't been modified, otherwise it
>     will open a new split-window:
>
>
> In my case the current window has not been modified. A new split-window is not
> opened. Instead, the cursor jumps to another window that is occupied by a
> different buffer.
>
> This also often happens when I select ".." in the file list within the explorer
> window. That window changes to show me a list of the files in the parent
> directory AND the cursor jumps to a different window.

It would help greatly if you could post a sequence of steps that
demonstrates this problem consistently.

Here's a sequence of steps that seems reliable.
- start MacVim
- :E
- select any file (opens in what I'll call window 1)
- :sp
- :E
- select any other file (opens in window 2
- ctrl-w ctrl-w (to switch to window 1)
- :E
- the cursor jumps from window 1 to window 2
 
--
R. Mark Volkmann
Object Computing, Inc.

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

No comments: