NERD_tree Project : It tries to find out root project directory, browse project file with NERD_tree.
script karma |
Rating 15/10,
Downloaded by 1159 |
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). |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.118.173.146
|