9

It is normally on the left side, and it enables a fast switching between files in a complex directory hierarchy.

8

Vim comes with a built-in file explorer called netrw. If you have a reasonaby recent Vim, the following command will give you the kind of feature you are missing:

:Lexplore

See :help netrw.

5

NerdTree is commonly used for this, but you may want to take a look at Oil and vinegar - split windows and the project drawer , which makes an argument against using it.

If you choose to go this way, tpope/vim-vinegar is an extension that enhances the build in directory browser.

  • +1 for the article. It can really change your view on the way of using windows in vim. Here is another filesystem navigation plugin inspired by it. – tokoyami Feb 3 '15 at 21:02
4

If nerdtree set:

let g:NERDTreeWinPos = "right"
2

When I was transitioning to vim away from other editors, I wanted both a project drawer on the left and good tab functionality.

I started to use NERDTreeTabs, which is NERDTree, except optimized for use with multiple tabs. In particular, there is only one NERDTree now, and if you change tabs, the NERDTree is still there. So it really feels like a project drawer like you might find in other editors. Here's an example use.

enter image description here

You can customize the width of the NERDTree if you want. You might also set it to automatically close after use.

This works reasonably well with splits, but as in Chad's answer, there are difficulties with NERDTree and splits.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.