sponsor Vim development Vim logo Vim Book Ad

treeexplorer : uses perl and tree to create a tree file explorer

 script karma  Rating 12/3, Downloaded by 1969  Comments, bugs, improvements  Vim wiki

created by
scott urban
 
script type
utility
 
description
IMPORTANT: See UPDATES below - this script is now an orphan

Uses perl and the unix tree command (available on linux, or find sources on freshmeat.net) to create a tree based explorer for your directory structure.   Features:

- directories are foldable
- different filetypes are highlighed
- open a file in a new window
- mappings for naviagation,
- lazy loading of directory structure

Caveats:
Probably doesn't work right for non-unix systems, I'm working on this, but help is welcome

UPDATES:
- I have reimplemented this script using only vim.  The new implementation can be found at http://vim.sourceforge.net/scripts/script.php?script_id=184 - vimtreeexplorer.vim.  That approach is faster as well as requiring no external programs.  I have now abandoned the original implementation because the new implementation can do recursive expansion if you want it to.



Scott
 
install details
Instructions:
- make sure you have perl
- make sure you have 'tree' command
- download, gunzip, untar package
- make vimtreeexpl.pl executable, put in your path (e.g. $HOME/bin)
- put treeexpl.vim in your plugin dir (e.g. $HOME/.vim/plugin)

:TreeExplore

or

:STreeExplore

help at top of screen
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
treeexplorer.tar.gz 1.0 2002-01-15 6.0 scott urban Initial upload
ip used for rating: 18.97.14.90

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github