GitHub - hoffa/vitree: A Vim file browser in a separate terminal

1 min read Original article ↗

check release

A Vim file browser in a separate terminal.

demo

Why

No need to learn Vim window management.

Install

brew install hoffa/tap/vitree

Or with Go:

go install github.com/hoffa/vitree@latest

Or download a prebuilt binary.

Usage

Start Vim with a server name:

Note

You need Vim compiled with +clientserver:

In another terminal, run:

Navigate with keys or the mouse.

Keys

Key Action
j / k, / move selection (opens the file under it in Vim)
l / expand directory
h / collapse directory, or go to parent
Enter toggle directory
r refresh now
q / Ctrl-C quit

The mouse works too: wheel scrolls the selection, left-click selects and opens.

Options

Flag Default Description
-server auto-detected Vim --servername to send files to
-vim vim Vim binary to invoke (e.g. mvim, gvim)
-refresh 0 auto-refresh interval; 0 disables
-version print version and exit