Coder Social home page Coder Social logo

satorunooshie / vim-drawbox Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 20 KB

Draw ASCII diagrams in `blockwise-visual mode`. It can be used in combination with *ditaa* for graphic output etc...

License: MIT License

Vim Script 14.32% Go 84.20% Makefile 1.48%
ascii-art drawing go vim vim-plugin

vim-drawbox's Introduction

vim-drawbox - Draw ASCII diagrams in Vim

gyim/vim-boxdraw's Go version.

See vim-boxdraw in action

vim-drawbox plugin enable to draw ASCII diagrams in blockwise-visual mode.

Usage

  1. Select a rectangle via blockwise-visual mode.
  2. Invoke a draw command.
  3. (Optional) Use in combination with ditaa for graphic output etc...

Installation

This plugin executes drawbox.

The binary can be installed from Releases or use the following command if already installed Go.

cd cmd && go install

Command List

Command Description
+o Draw a rectangle.
+O or +mcb Draw a labeled rectangle.
+[O or +mlb Draw a labeled rectangle with top-left label.
+]O or +mrb Draw a labeled rectangle with top-right label.
+{O or +tcb Draw a labeled rectangle with top-center label.
+}O or +bcb Draw a labeled rectangle with bottom-center label.
+{[O or +tlb Draw a labeled rectangle with top-left label.
+{]O or +trb Draw a labeled rectangle with top-right label.
+}[O or +blb Draw a labeled rectangle with bottom-left label.
+}]O or +brb Draw a labeled rectangle with bottom-right label.
+c or +mcl Place a label on the middle center.
+[c or +mll Place a label on the middle left.
+]c or +mrl Place a label on the middle right.
+{c or +tcl Place a label on the top center.
+}c or +bcl Place a label on the bottom center.
+{[c or +tll Place a label on the top left.
+{]c or +trl Place a label on the top right.
+}[c or +bll Place a label on the bottom left.
+}]c or +brl Place a label on the bottom right.
+> or +< Draw a horizontal line.
+V, +v, or +^ Draw a vertical line.
++> or ++< Draw a double horizontal line.
++V, ++v, or ++^ Draw a double vertical line.
+- or +_ Draw a horizontal line.
+| Draw a vertical line.
ao or ab Select the outer box.
io or ib Select the inner box.

License

MIT

vim-drawbox's People

Contributors

satorunooshie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.