Vim Diagramme: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Sigi (Diskussion | Beiträge) (Die Seite wurde neu angelegt: « === Schnell und einfach ASCII Diagramme, Boxen usw. mit dem Vim-Plugin DrawIt erstellen. === ===== Download / Installieren: ===== - Plugin von [http://www.vim…») |
Sigi (Diskussion | Beiträge) KKeine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
__NOTOC__ | |||
== Schnell und einfach ASCII Diagramme, Boxen usw. mit dem Vim-Plugin DrawIt erstellen. == | |||
<br /> | |||
===== Download / Installieren: ===== | ===== Download / Installieren: ===== | ||
Version vom 14. November 2018, 17:02 Uhr
Schnell und einfach ASCII Diagramme, Boxen usw. mit dem Vim-Plugin DrawIt erstellen.
Download / Installieren:
- Plugin von vim.org downloaden
- oder:
$ wget -O DrawIt.vba.gz http://www.vim.org/scripts/download_script.php?src_id=8798 $ vim DrawIt.vba.gz :so % :q
(:so %) installiert das Plugin in der aktuellen Userumgebung (meist unter .vim/ oder so)
aktivieren/deaktivieren:
- Plugin in Vim aktivieren:
\di - Plugin in Vim deaktivieren:
\ds
Tipps:
- Für den "visual mode" einfach mit der Maus einen Bereich markieren.
- <space> Taste für aktiv/erase Modus
Kommandos/Funktionen:
<left> move and draw left
<right> move and draw right, inserting lines/space as needed
<up> move and draw up, inserting lines/space as needed
<down> move and draw down, inserting lines/space as needed
<s-left> move left
<s-right> move right, inserting lines/space as needed
<s-up> move up, inserting lines/space as needed
<s-down> move down, inserting lines/space as needed
<space> toggle into and out of erase mode
> draw -> arrow
< draw <- arrow
^ draw ^ arrow
v draw v arrow
<pgdn> replace with a \, move down and right, and insert a \
<end> replace with a /, move down and left, and insert a /
<pgup> replace with a /, move up and right, and insert a /
<home> replace with a \, move up and left, and insert a \
\> draw fat -> arrow
\< draw fat <- arrow
\^ draw fat ^ arrow
\v draw fat v arrow
\a draw arrow based on corners of visual-block
\b draw box using visual-block selected region
\e draw an ellipse inside visual-block
\f fill a figure with some character
\h create a canvas for \a \b \e \l
\l draw line based on corners of visual block
\s adds spaces to canvas
<leftmouse> select visual block
<s-leftmouse> drag and draw with current brush (register)
\ra ... \rz replace text with given brush/register
\pa ... like \ra ... \rz, except that blanks are considered
to be transparent
Weitere Infos und auf der Vim-Website: [ https://www.vim.org/scripts/script.php?script_id=40 ]