On Jul 21, 11:41 pm, Charles E Campbell Jr <[email protected]>
wrote:
> googler wrote:
> > Hi,
> > I am using the directory listing features of gvim (for example using
> > the Explore command). I am wondering if there is a way to display the
> > directory contents in a tree structure, like in Windows Explorer for
> > example. Currently when I click on a directory name, it will open a
> > new page and show the contents of this directory. I don't want this --
> > what I want is, it will just expand the subtree under that directory.
> > Is such a thing possible in gvim? May be I'm asking for too much, but
> > it will be nice if this is possible.
> > In case the above is possible, a great use (or next step) will be to
> > have a file open in a split window when its name is clicked on the
> > other window.
> > Any suggestions? Thanks.
>
> * When looking at a directory, press the "i" key several times until
> you get the tree listing style. If you always want that style, put
>
> let g:netrw_liststyle= 3
>
> into your .vimrc .
>
> * let g:netrw_retmap = 1 lets a double-left click return to the
> directory menu (you didn't ask, but I thought it of interest)
>
> * let g:netrw_browse_split= 2
>
> Regards,
> Chip Campbell
I have been using gvim in certain cases as you had suggested. I have a
gvim session up. The left window is a directory listing and the right
window is an open file (opened by pressing 'enter' on one of the file
names on the left window). I pressed the key i a few times for the
left window to get a hierarchical listing. Also, I have set
g:netrw_browse_split to 4. So things are good, except for one annoying
problem. When the cursor is on the left window and I click on the
right window to make it the active window, that does not happen.
Instead what I get is that the directory listing disappears from the
left window and in its place it opens a new file for editing. The name
of this file is the same as the line on which I had clicked on the
right window. Clearly, this is not what I wanted and I have to bring
back the directory listing by doing a :Explore. Usually (while not
listing directory contents), I can click on a window to make it the
active window and it works fine there. Why is it not working in this
case then? How do I avoid this problem? Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---