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
Friday, August 10, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment