October 2015
Intermediate to advanced
356 pages
7h 54m
English
| Tip 44 | Explore the File System with netrw |
In addition to letting us view (and edit) the contents of a file, Vim also lets us view the contents of a directory. The netrw plugin, included in the Vim distribution, allows us to explore the file system.
The functionality described in this tip is not implemented in Vim’s core source code but in a plugin called netrw. This plugin comes as standard with the Vim distribution, so we don’t have to install anything, but we do need to make sure that Vim is configured to load plugins. These lines of configuration are the minimum requirement for your vimrc file:
| | set nocompatible |
| | filetype plugin on |
If we launch Vim with the path to a directory ...