Quantcast

:E and current window

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

:E and current window

Mark Volkmann-2
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?

--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

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

> :Explore  will open the local-directory browser on the current file's
>           directory (or on directory [dir] if specified).  The window will be
>  split only if the file has been modified, otherwise the browsing
>  window will take over that window.  Normally the splitting is taken
>  horizontally.
> :Explore! is like :Explore, but will use vertical splitting.
> :Sexplore will always split the window before invoking the local-directory
>           browser.  As with Explore, the splitting is normally done
>  horizontally.
> :Sexplore! [dir] is like :Sexplore, but the splitting will be done vertically.
> :Hexplore  [dir] does an :Explore with |:belowright| horizontal splitting.
> :Hexplore! [dir] does an :Explore with |:aboveleft|  horizontal splitting.
> :Vexplore  [dir] does an :Explore with |:leftabove|  vertical splitting.
> :Vexplore! [dir] does an :Explore with |:rightbelow| vertical splitting.
> :Texplore  [dir] does a tabnew before generating the browser window
>
> By default, these commands use the current file's directory.  However, one may
> explicitly provide a directory (path) to use.
>
> The [N] will override |g:netrw_winsize| to specify the quantity of rows and/or
> columns the new explorer window should have.
>
> Otherwise, the |g:netrw_winsize| variable, if it has been specified by the
> user, is used to control the quantity of rows and/or columns new explorer
> windows should have.
>
> :Rexplore  This command is a little different from the others.  When one
>            edits a file, for example by pressing <cr> when atop a file in
>   a netrw browser window, :Rexplore will return the display to
>   that of the last netrw browser window.  It is a command version
>   of the <2-leftmouse> map (which is only available under gvim and
>   cooperative terms).


Best regards,
Tony.
--
ARTHUR:  Well, I AM king...
DENNIS:  Oh king, eh, very nice.  An' how'd you get that, eh?  By exploitin'
          the workers -- by 'angin' on to outdated imperialist dogma which
          perpetuates the economic an' social differences in our
society!  If
          there's ever going to be any progress--
                                   The Quest for the Holy Grail (Monty
Python)

--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

Mark Volkmann-2
On Fri, Aug 10, 2012 at 4:06 PM, Tony Mechelynck <[hidden email]> 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. 
 
--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

Gary Johnson-4
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.

Regards,
Gary

--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

Mark Volkmann-2
On Fri, Aug 10, 2012 at 5:10 PM, Gary Johnson <[hidden email]> 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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

Gary Johnson-4
On 2012-08-10, Mark Volkmann wrote:

> 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

That's great, thanks!  I don't have a Mac, so I tried that using
gvim on a Linux system and gvim on a Windows XP system and the
cursor stayed in window 1.  We may need to find someone else on the
list who uses MacVim to troubleshoot this further.

You might try starting your MacVim with the following options,

    -N -u NONE -c 'runtime plugin/netrwPlugin.vim'

and see if the issue is still there.  If it isn't, that would
suggest interference from some other plugin.

Regards,
Gary

--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

Tony Mechelynck
In reply to this post by Mark Volkmann-2
On 10/08/12 23:41, Mark Volkmann wrote:

> On Fri, Aug 10, 2012 at 4:06 PM, Tony Mechelynck
> <[hidden email] <mailto:[hidden email]>> 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.
> --
> R. Mark Volkmann
> Object Computing, Inc.

Do you use 'splitbelow'? I do, but I think Dr. Chip doesn't, which makes
netrw behave in unexpected ways.


Best regards,
Tony.
--
Vim is like Emacs without all the typing.  (John "Johann" Spetz)

--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

Mark Volkmann-2
No, I don't use that Vim plugin.

On Aug 10, 2012, at 7:39 PM, Tony Mechelynck
<[hidden email]> wrote:

> On 10/08/12 23:41, Mark Volkmann wrote:
>> On Fri, Aug 10, 2012 at 4:06 PM, Tony Mechelynck
>> <[hidden email] <mailto:[hidden email]>> 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.
>> --
>> R. Mark Volkmann
>> Object Computing, Inc.
>
> Do you use 'splitbelow'? I do, but I think Dr. Chip doesn't, which makes netrw behave in unexpected ways.
>
>
> Best regards,
> Tony.
> --
> Vim is like Emacs without all the typing.  (John "Johann" Spetz)
>

--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

Tony Mechelynck
On 11/08/12 12:11, Mark Volkmann wrote:
> No, I don't use that Vim plugin.

It isn't a plugin, it's an option setting, see :help 'splitbelow'

>
> On Aug 10, 2012, at 7:39 PM, Tony Mechelynck
> <[hidden email]> wrote:
>
>> On 10/08/12 23:41, Mark Volkmann wrote:
>>> On Fri, Aug 10, 2012 at 4:06 PM, Tony Mechelynck
>>> <[hidden email] <mailto:[hidden email]>> 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.
>>> --
>>> R. Mark Volkmann
>>> Object Computing, Inc.
>>
>> Do you use 'splitbelow'? I do, but I think Dr. Chip doesn't, which makes netrw behave in unexpected ways.
>>
>>
>> Best regards,
>> Tony.
>> --
>> Vim is like Emacs without all the typing.  (John "Johann" Spetz)
>>
>
Best regards,
Tony.
--
Human cardiac catheterization was introduced by Werner Forssman in
1929.  Ignoring his department chief, and tying his assistant to an
operating table to prevent his interference, he placed a uretheral
catheter into a vein in his arm, advanced it to the right atrium [of
his heart], and walked upstairs to the x-ray department where he took
the confirmatory x-ray film.  In 1956, Dr. Forssman was awarded the
Nobel Prize.

--
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: :E and current window

Charles E Campbell Jr
In reply to this post by Mark Volkmann-2
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?
>
>    
Please try the latest netrw; I'm not saying it will fix your problem (as
I don't have a Mac), but there was a bug with an open buffer, :split,
etc that has been fixed.  You may get it from my website:  
http://www.drchip.org/astronaut/vim/index.html#NETRW .

Regards,
Chip Campbell

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