Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a kind of explorer for GVIM where I could see a project in a tree structure with its containing files, so I could easily navigate through them?

If there is any other functionality such as projects in tabs at the top, with its own tree showing after switching projects, I would be even happier.

share|improve this question
up vote 1 down vote accepted

Not exactly, but I use a combination of gui file manager (Thunar), shell script, and Gvim remote control feature to achieve the same thing.

Basically:

$ cat ~/bin/cvim 
#!/bin/sh

if [ $# -gt 0 ] ; then
    exec gvim --servername CVIM --remote-silent "$@"
else
    exec gvim --servername CVIM
fi

The Cvim is a "common vim" that invokes gvim specially.

$ cat $HOME/.local/share/applications/cvim.desktop
[Desktop Entry]
Encoding=UTF-8
Name=cVim
Comment=Common vim - open in single vim instance.
Exec=cvim %F
Icon=gvim
Terminal=false
Type=Application
MimeType=text/*
Categories=Application;Development;

Set the GUI manager to use that App for text files.

Also in ~/.gvimrc:

map <M-Left> :bp<CR>
map <M-Right> :bn<CR>
map <M-Del> :bd<CR>
map ZZ :bd<CR>

And I think that should do it. Then you can just use your regular desktop file browser to look at your tree and select files, which causes a single instance of gvim to open in multiple buffers.

share|improve this answer

I haven't used it myself, but I've read good things about the project plugin, which allows you to "Organize/Navigate projects of files (like IDE/buffer explorer)".

share|improve this answer

I have been searching for a plugin like this as well. NERDTree is my best choice for this kind of interaction. It is up to date for 7.3 and very configurable.

share|improve this answer

You can look into the NERDTree plugin.

share|improve this answer

I highly recommend VimFiler. It is more mature than NERDTree.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .