From e26958b154d0457c1019bc48a5ff0ed637cf3eac Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 18 Aug 2015 01:54:42 +0200 Subject: update vim --- Editor/vim/boxdraw/bdub2a.pl | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Editor/vim/boxdraw/bdub2a.pl (limited to 'Editor/vim/boxdraw/bdub2a.pl') diff --git a/Editor/vim/boxdraw/bdub2a.pl b/Editor/vim/boxdraw/bdub2a.pl new file mode 100644 index 0000000..4482923 --- /dev/null +++ b/Editor/vim/boxdraw/bdub2a.pl @@ -0,0 +1,30 @@ +# Convert +-| style drawings into utf characters +# BoxDraw-unicode-box to ascii +# 2003-11-25 12:48:17 -- created by nsg + +use 5.8.0; +use strict; +use utf8; +# binmode (STDOUT, ":utf8"); # incompatible with perl 5.6.1 +# binmode (STDIN, ":utf8"); # incompatible with perl 5.6.1 + +while() { + my $l=length; + tr/┌┬┐╓╥╖╒╤╕╔╦╗├┼┤╟╫╢╞╪╡╠╬╣└┴┘╙╨╜╘╧╛╚╩╝/++++++++++++++++++++++++++++++++++++/; + tr/═─│║/\-\-\|\|/; + printf "%03d ",$l; + print ; +} + +# corners/splits: +# ┌┬┐╓╥╖╒╤╕╔╦╗ 6ec +# ├┼┤╟╫╢╞╪╡╠╬╣ 7fd +# └┴┘╙╨╜╘╧╛╚╩╝ 3b9 +# round corners: +# 256d 256e +# 2570 256f +# horizontal +# ═ ─ +# vertical +# │ ║ + -- cgit v1.2.3-54-g00ecf