Netrw Cheatsheet

last modified: | 1 min read #cheatsheet #vim

Opening

  • :Ex[plore] - open Netrw
  • :Vex[plore] - open Netrw in vertical split on the left window
  • :Hex[plore] - open Netrw in horizontal split on the lower window
  • :Sex[plore] - open Netrw in horizontal split on the upper window
  • :Tex[plore] - open Netrw in tabpage
  • Enter - opens directory or a file
  • - - go up to the parent directory
  • u - go back ot the previous directory in the history
  • gb - jump to the most recent directory on the Bookmarks. To create bookmark we use mb
  • gh - toggle hidden files

Preview files

  • p - open preview
  • Ctrl + wz - close preview window

File Operations

  • % - create a file buffer (still need to save it to be an actual file)
  • R - rename a file
  • d - create a directory
  • D - delete file or empty directory

Others

  • I - toggle banner
  • i - cycle between thin, long wide and tree listing format