Links: Vim
Vim comes with a built in file manager called netrw, that allows for basic file navigation and management inside the editor.
You can open netrw by passing a directory as an argument when opening Vim, or with one of the next commands:
| command | description |
|---|---|
:Ex | Open current directory in current Vim window |
:Ex dir | Open <dir> in current Vim window |
:Sex | (yes, you read it right) like :Ex but in a horizontal split |
:Vex | Like :Ex but in a vertical split |
:Tex | Like :Ex but in a new tab |
IDE like side file manager
With
:40vs +Exyou can open a small split on the left with the file manager.
You can setnetrw_browse_split = 4to open files in the previous split.
Commands inside netrw
| command | description |
|---|---|
| <Enter> | open file in vim |
| D | delete file |
| R | rename file |
| X | execute file |
| % | create new file |
You can also use visual mode to select multiple files