vimcommand-line-interfacefile-browser

How to effectively navigate through files in vim?


When you are using vim, is there a way to have a GUI-style navigation panel to open files in the your source code directory?

Something that's somewhat similar to the Sublime Text GUI sidebar? Picture below describing what I mean:

sublime text file directory sidebar


Solution

  • I use NERDTree, which provides a sidebar for file selection. Next to that you are also able to do file operations like moving them or creating new ones.

    If you want each file to be accompanied by an icon that reflects what extension it is, you can also install vim-devicons. But then you should also install one of the nerd-fonts and set it as the font for your terminal.