sponsor Vim development Vim logo Vim Book Ad

FindInNERDTree : Expands NERDTree to file in current buffer

 script karma  Rating 5/4, Downloaded by 667  Comments, bugs, improvements  Vim wiki

created by
Doug McInnes
 
script type
utility
 
description
!!! THE CURRENT VERSION OF NERDTree ALREADY HAS THIS FEATURE !!!

I.e. you don't need this plugin :)

---

FindInNERDTree is a NERDTree vimscript #1658 plugin that recursively opens the tree to the location of the current buffer. If you jump around source code using ctags, trying to open the tree to where you are can be quite a chore. With this script you can hit a key combination and have the tree immediately pop open to your location.

The script is also hosted on GitHub:
http://github.com/dmcinnes/FindInNERDTree
 
install details
Requires version 4.0.0 of NERDTree vimscript #1658!  If you're getting error messages you probably need to update!

Drop the script into the NERDTree plugin folder:
.vim/plugin/nerdtree_plugin

Add a mapping to your .vimrc file, e.g. this fires it off with Control-f:
nnoremap <silent> <C-f> :call FindInNERDTree()<CR>
 

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
FindInNERDTree.vim 1.0 2009-11-13 7.0 Doug McInnes Initial upload
ip used for rating: 18.191.228.88

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