5

GitHub - willchao612/vim-diagon: Vim wrapper of Diagon API to generate simple Un...

 2 years ago
source link: https://github.com/willchao612/vim-diagon
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Vim Diagon

Vim wrapper of Diagon API to generate simple Unicode or ASCII diagrams

Table of Contents

Prerequisites

Diagon's command line interface is required for this plugin to work.

sudo snap install diagon

Installation

Use your favorite package manager.

Usage

Visually select lines in Diagon syntax and call Diagon type [options].

A type must be given while options are usually not needed. Refer to Diagon's documentation for a detailed explanation on its syntax, types and options.

Command Diagon accepts a range, if not given then defaults to current line.

Mappings

No default predefined mappings are provided. You can remap commands to your need.

noremap <Leader>D :Diagon<Space>

noremap <Leader>dm :Diagon Math<CR>
noremap <Leader>ds :Diagon Sequence<CR>
noremap <Leader>dt :Diagon Tree<CR>

Credits

Thanks to @ArthurSonzogni for his efforts on Diagon.

License

Copyright © 2021 Will Chao. Distributed under the MIT license.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK