Convert markdown list format to tree format.
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>
call dein#add('shinespark/vim-list2tree', {'lazy': 1, 'on_cmd': 'List2Tree'})