Skip to content
Search

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

References


  1. If the arrow characters NERDTree displays are not supported in vim, enter let g:NERDTreeDirArrows=0. ↩

author Zer0 sitemap