lilydjwg / vim-foldtree

Fold ASCII tree graphs in Vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fold ASCII trees in Vim

Supported trees

  • systemctl status
  • tree
  • cargo tree

Install

Install the rust toolchain and run:

cargo install vim-foldtree

Copy foldtree.vim into your Vim's plugin directory ~/.vim/plugin.

Usage

Edit the tree graph into a Vim buffer and run :FoldTree.

Or use a pipeline like this:

$ systemctl status | vim -c FoldTree -R -

About

Fold ASCII tree graphs in Vim

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Rust 86.8%Language:Vim Script 13.2%