Awesome Open Source
Awesome Open Source

vim-list2tree

Convert markdown list format to tree format.

images

Usage

Write directories / files by markdown list.

* .
  * dir
    * file
    * file
    * file
  * dir
    * dir
      * file
      * file
  * file

Select target lines by linewise-visual, type :'<,'>List2Tree .

.
├── dir
│   ├── file
│   ├── file
│   └── file
├── dir
│   └── dir
│       ├── file
│       └── file
└── file

If you need to use keymapping, add this vim setting.

vnoremap <c-t> :<c-u>'<,'>List2Tree<CR>

Install

dein.vim

call dein#add('shinespark/vim-list2tree', {'lazy': 1, 'on_cmd': 'List2Tree'})

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Vim Script (18,553
Markdown (6,635
Vim (5,736
Tree (1,612
Vim Plugin (1,232
Related Projects