Advanced Usage of Netrw

Introduction to Advanced Netrw Features

Netrw, Vim’s built-in file explorer, extends beyond basic file browsing into a tool capable of sophisticated file management tasks suited for complex workflows.

Bookmarking Directories

  1. Bookmarking Command: Use the mb command within Netrw to bookmark a directory.
  2. Access Bookmarks: Open bookmarks with :Rexplore or gb to quickly navigate between them.

Using Split Windows with Netrw

  1. Splitting Windows: Use :Vexplore or :Sexlore to open Netrw in a vertical or horizontal split window, allowing you to browse files while maintaining visibility on your current work.

Accessing Remote Files with Netrw

  1. Open Netrw: Type :Explore.
  2. Access Remote Files: Enter a path in the format of protocol://host/path (e.g., scp://remote.server.com/path) to browse and manage files on a remote server.