How preservim/nerdtree works
NERDTree is a Vim file-system explorer. The documented workflow starts with a user opening it using :NERDTree, browsing directory hierarchies, and opening files; it also supports basic file operations and extension through its API. The tree identifies likely implementation modules, but no source excerpts were provided, so internal calls and dispatch paths cannot be verified and are left unconnected.
Main entry points: NERD_tree.vim Plugin Commands · tree_dir_node.vim Tree Nodes · opener.vim File Opening · fs_menu.vim File Operations
Components 10
Vim Entry
- Plugin Commands
plugin/NERD_tree.vim
Tree Explorer
- Tree Creation
lib/nerdtree/creator.vim - Tree Nodes
lib/nerdtree/tree_dir_node.vim - File Nodes
lib/nerdtree/tree_file_node.vim - Tree Display
lib/nerdtree/ui.vim - Vim UI Glue
autoload/nerdtree/ui_glue.vim
File Actions
- File Opening
lib/nerdtree/opener.vim - File Operations
nerdtree_plugin/fs_menu.vim
Extensions
- Extension API
doc/NERDTree.txt
Other components
- Vim User
Connections 5
- Vim User → Plugin Commands: opens explorer
README.markdown - Vim User → Tree Nodes: browses hierarchy
- Vim User → File Opening: opens files
- Vim User → File Operations: performs operations
- Vim User → Extension API: extends mappings
README.markdown