Skip to content

NERDTree

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

vim 시작시 자동으로 NERDTree를 실행하고 싶은 경우 아래 코드를 vimrc에 붙여넣으면 된다.

" Start NERDTree
autocmd VimEnter * NERDTree
" Go to previous (last accessed) window.
autocmd VimEnter * wincmd p

Options

let g:NERDTreeWinPos = "right"
오른쪽으로 출력하고 싶은 경우 아래 코드를 vimrc에 붙여넣으면 된다.
let NERDTreeIgnore = ['\.pyc$']
무시할 파일 목록을 열거한다.

See also

Favorite site

References


  1. NERDTree가 출력하는 화살표 문자가 vim에서 지원되지 않는 경우 let g:NERDTreeDirArrows=0입력.