Put File System Tree in VIM
The file system shown in VIM’s environment is called NERD tree. It’s an extension just like any other. Much like any editor, you need good looking work space. To me, without file system (on left side) just isn’t right.
Instead of adding (more) stuff to .vimrc file, I decided to call -c “NERDTree” on each vim command. You can do it by placing alias in .bashrc file:
alias vim='vim -c "NERDTree"'
Put that somewhere in .bashrc file, source it:
And you’re done! Next time you open a file for editing in Vim, you’ll see file system tree on your left side of Vim screen. Neat!
Share this story:
Leave a Reply