gyim/vim-boxdraw's Go version.
vim-drawbox plugin enable to draw ASCII diagrams in blockwise-visual
mode.
- Select a rectangle via blockwise-visual mode.
- Invoke a draw command.
- (Optional) Use in combination with ditaa for graphic output etc...
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 | 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. |
MIT