sponsor Vim development Vim logo Vim Book Ad

NERD_tree Project : It tries to find out root project directory, browse project file with NERD_tree.

 script karma  Rating 15/10, Downloaded by 1072  Comments, bugs, improvements  Vim wiki

created by
Janlay Wu
 
script type
utility
 
description
This plugin works together with NERD_tree (http://www.vim.org/scripts/script.php?script_id=1658). It tries to find out root project directory for current file, and calls NERD_tree in that directory. If no project found, then calls NERD_tree in current directory.

=== How does this plugin work ===
It searches several files used to indicate a project root directory when creating or reading file:
    build.xml, Makefile, .project, .lvimrc
If any one of them found, the located directory is recognized as project root directory. Command 'ToggleNERDTree' should open this directory as root so that you could keep working on the proper project. NERD_tree opens current directory if nothing found.

=== Usage ===
  Type in normal mode:
      :ToggleNERDTree<CR>,
  or map shortcut in your .vimrc file:
      map <F8> :ToggleNERDTree<CR>

=== Customize ===
  Make NERD_tree Project to recognize more project, such as scons:
      let g:NTPNames = add(g:NTPNames, 'SConstruct')
  or add more file types:
      extend(g:NTPNames, ['*.sln', '*.csproj'])
 
install details
First, make sure NERD_tree is installed. Then put NERD_tree_project.vim in ~/.vim/plugin (*nix) or $HOME/vimfiles/plugin (DOS).
 

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
NERD_tree_project.vim 0.1 2009-10-06 7.0 Janlay Wu Initial upload
ip used for rating: 3.145.184.7

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