NERDTree
lastmod 2020-06-09created 2020-06-091 edits
The NERD tree allows you to explore your filesystem and to open files and directories. It presents the filesystem to you in the form of a tree which you manipulate with the keyboard and/or mouse. It also allows you to perform simple filesystem operations.
How to use
Command
-
r - Refresh cursor directory.
-
R - Refresh current root directory.
Startup setting
To run NERDTree automatically when vim starts, paste the code below into vimrc.
" Start NERDTree
autocmd VimEnter * NERDTree
" Go to previous (last accessed) window.
autocmd VimEnter * wincmd p
Options
-
let g:NERDTreeWinPos = "right" - To display it on the right, paste the code below into vimrc.
-
let NERDTreeIgnore = ['\.pyc$'] - Lists the files to ignore.
See also
Favorite site
- NERDTree project site
- NERDTree vim script site
- NERDTree, a file manager replacement plugin
- NERDTree (How to use)
- I'm using trinity in vim, and nerdtree has too many errors
- Vimmers, You Don’t Need NerdTree
- Stackoverflow: How do you add NERDTree to your vimrc?
- When directories won't open in NERDTree 4.2.0 1
References
-
If the arrow characters NERDTree displays are not supported in vim, enter
let g:NERDTreeDirArrows=0. ↩
Pages that link here