From a654f3b38b6ac88771b59e53058ebcec1d393424 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Tue, 29 Nov 2016 20:45:37 +0000 Subject: remove unecessary vim plugins --- Editor/vim/boxdraw/bdua2b.pl | 91 ----- Editor/vim/boxdraw/bdub2a.pl | 30 -- Editor/vim/boxdraw/boxdraw.txt | 164 -------- Editor/vim/boxdraw/boxdraw.vim | 291 ------------- Editor/vim/boxdraw/outline.pl | 74 ---- Editor/vim/boxdraw/sampler.txt | 13 - Editor/vim/bundle/Vundle.vim | 1 - Editor/vim/bundle/syntastic | 1 - Editor/vim/bundle/ultisnips | 1 - Editor/vim/bundle/vim-snippets | 1 - Editor/vim/bundle/vim-surround | 1 - Editor/vim/doc/DrawIt.txt | 489 ---------------------- Editor/vim/doc/imaps.txt.gz | 1 - Editor/vim/doc/latex-suite-quickstart.txt.gz | 1 - Editor/vim/doc/latex-suite.txt.gz | 1 - Editor/vim/doc/latexhelp.txt.gz | 1 - Editor/vim/doc/surround.txt | 205 ---------- Editor/vim/doc/tags | 56 --- Editor/vim/filetype.vim | 4 - Editor/vim/plugin/cecutil.vim | 536 ------------------------ Editor/vim/plugin/surround.vim | 588 --------------------------- Mail/mutt/alias.sh | 14 - 22 files changed, 2564 deletions(-) delete mode 100644 Editor/vim/boxdraw/bdua2b.pl delete mode 100644 Editor/vim/boxdraw/bdub2a.pl delete mode 100644 Editor/vim/boxdraw/boxdraw.txt delete mode 100644 Editor/vim/boxdraw/boxdraw.vim delete mode 100644 Editor/vim/boxdraw/outline.pl delete mode 100644 Editor/vim/boxdraw/sampler.txt delete mode 160000 Editor/vim/bundle/Vundle.vim delete mode 160000 Editor/vim/bundle/syntastic delete mode 160000 Editor/vim/bundle/ultisnips delete mode 160000 Editor/vim/bundle/vim-snippets delete mode 160000 Editor/vim/bundle/vim-surround delete mode 100644 Editor/vim/doc/DrawIt.txt delete mode 120000 Editor/vim/doc/imaps.txt.gz delete mode 120000 Editor/vim/doc/latex-suite-quickstart.txt.gz delete mode 120000 Editor/vim/doc/latex-suite.txt.gz delete mode 120000 Editor/vim/doc/latexhelp.txt.gz delete mode 100644 Editor/vim/doc/surround.txt delete mode 100644 Editor/vim/doc/tags delete mode 100644 Editor/vim/filetype.vim delete mode 100644 Editor/vim/plugin/cecutil.vim delete mode 100644 Editor/vim/plugin/surround.vim delete mode 100755 Mail/mutt/alias.sh diff --git a/Editor/vim/boxdraw/bdua2b.pl b/Editor/vim/boxdraw/bdua2b.pl deleted file mode 100644 index 2e94b9a..0000000 --- a/Editor/vim/boxdraw/bdua2b.pl +++ /dev/null @@ -1,91 +0,0 @@ -# Convert +-| style drawings into utf characters -# BoxDraw-unicode-ascii to box -# 2003-11-24 10:12:22 created by nsg -# 2003-11-25 13:16:17 renamed and small fix in "intelligence" -# 2004-06-18 14:18:11 boxsets -# 2004-06-21 21:41:30 hex input codes -use strict; -use utf8; -use 5.8.0; -use Getopt::Std; - -our ( - $opt_s, # boxset 's', 'd', 'v' or 'h' - $opt_x, # convert hex digits into appropriate bd characters - $opt_t, # ternary codes ' ' .. 'p' -); -getopts("s:xt"); -$opt_s||='s'; - -my $o_utf8='--0251--001459--50585a----------0202----0c1c----525e------------51--51--53--5f--54--60------------------------------------------00185c--003468------------------1024----2c3c--------------------56--62--65--6b--------------------------------------------------505b5d----------506769----------5561------------646a------------57--63----------66--6c------------------------------------------------------------------01'; - -binmode (STDOUT, ":utf8"); -my %boxset=( -# 1|.,'}\u{25',"1 (_2 ]\ o_utf8) {~ 4#.2*#:i.16 - 's'=>" \x{2502}\x{2500}\x{2514}\x{2502}\x{2502}\x{250c}\x{251c}\x{2500}\x{2518}\x{2500}\x{2534}\x{2510}\x{2524}\x{252c}\x{253c}\n", - 'd'=>" \x{2551}\x{2550}\x{255a}\x{2551}\x{2551}\x{2554}\x{2560}\x{2550}\x{255d}\x{2550}\x{2569}\x{2557}\x{2563}\x{2566}\x{256c}\n", - 'h'=>" \x{2502}\x{2550}\x{2558}\x{2502}\x{2502}\x{2552}\x{255e}\x{2550}\x{255b}\x{2550}\x{2567}\x{2555}\x{2561}\x{2564}\x{256a}\n", - 'v'=>" \x{2551}\x{2500}\x{2559}\x{2551}\x{2551}\x{2553}\x{255f}\x{2500}\x{255c}\x{2500}\x{2568}\x{2556}\x{2562}\x{2565}\x{256b}\n", -); - -my $BOX=$boxset{$opt_s} || $boxset{'s'}; - -my $prev=''; -my $pprev=''; -while() { - process_line(); -} -process_line(); - -sub process_line -{ - my $out=''; - for(my $i=0; $i32 ) { - $c=ord($c)-32; - for(0..3){$code =($code>>2)+(($c%3)<<6); $c=int($c/3);} - $c=chr(hex('25'.substr($o_utf8, $code*2,2))); - } - $code=0; - } else { - if( $c=~/[-+\|]/ ) { - $code |= 1 if substr($pprev,$i ,1)=~/[\|+]/ ; - $code |= 2 if substr($prev ,$i+1,1)=~/[-+]/ ; - $code |= 4 if substr($_ ,$i ,1)=~/[\|+]/ ; - $code |= 8 if substr($prev ,$i-1,1)=~/[-+]/ ; - - $code = 10 if $code && '-' eq $c; - $code = 5 if $code && '|' eq $c; - } - } - $out.=$code?substr($BOX,$code,1):$c; - } - print $out; - $pprev=$prev; - $prev=$_; -} - -# -# -# 0001 02 -# 0010 00 -# 0011 14 -# 0100 02 -# 0101 02 -# 0110 0c -# 0111 1c -# 1000 00 -# 1001 18 -# 1010 00 -# 1011 34 -# 1100 10 -# 1101 24 -# 1110 2c -# 1111 3c diff --git a/Editor/vim/boxdraw/bdub2a.pl b/Editor/vim/boxdraw/bdub2a.pl deleted file mode 100644 index 4482923..0000000 --- a/Editor/vim/boxdraw/bdub2a.pl +++ /dev/null @@ -1,30 +0,0 @@ -# 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 -# │ ║ - diff --git a/Editor/vim/boxdraw/boxdraw.txt b/Editor/vim/boxdraw/boxdraw.txt deleted file mode 100644 index b821a43..0000000 --- a/Editor/vim/boxdraw/boxdraw.txt +++ /dev/null @@ -1,164 +0,0 @@ -Summary -------- - * Draw diagrams and tables using "real box drawing characters" (AKA ANSI -art). - * Move rectangular/linear blocks of text around. - * Trace box-drawing typeset diagrams -- follow the lines, etc. - -Detailed description --------------------- -These scripts facilitate drawing simple 'ANSI' graphic containing box -drawing characters (not just '+', '-' and '|', but REAL box drawing -characters). It can be useful to draw diagrams and fancy tables (at -least, I use it this way). - -Upon sourcing the script defines several macros: - - -- moves cursor in specified direction leaving trail of -box drawing characters, making all joins and crossings. -g+ -- follow line of boxdrawing characters until it reaches -intersection or ends. - in visual mode -- move selected rectangular block in -specified direction. -\e -- ends box drawing mode (unmap shift+arrows macros and restore -virtualedit value) -\b -- restarts box drawing (map shift+arrows macros and set virtual - edit=all) -\s -- selects 'single-line' boxdrawing characters -\d -- selects 'double-line' boxdrawing characters -\a -- convert all characters in selection into ascii '+', '-', '|' (utf8 - only, not implemented) -("\" prefix may be changed by changing mapleader variable, see :h mapleader) - -When rectangular block is selected, it can be moved around using - keys. Unfortunately, as of version 6.1 multibyte -characters and rectangular blocks do not live together too good, so this -feature is experimental. - -When line block is selected, and moves it up or down -nondestructively, decreases indent and increases -indent. - -Currently box drawing is supported for utf8 and cp437 (DOS) encodings. - -Script does not use any "weird" box drawing characters from unicode set -that are not present in, say, cp437. So, it is safe to save utf-8 file -in any single byte encoding that contains regular single box drawing -characters. -This script also contains mapping that converts all boxdrawing -characters in current selection into ascii '+', '-', '|'. - -If vim encoding is single byte, this script assumes cp437 (DOS). Most -encodings have boxdrawing characters at the same place, however, some -(notably, koi8-r) have them in different code postions. -If you want to use it with encoding that contains such -characters in diferent place, please drop me a note -- I will be happy -to add support for that codepage too. - -To help you determine which boxdrawing characters are suppored by your -terminal I have included file sampler.txt. Just type it (or cat it) on -the termianal and encoding that labels the block that looks "right" will -be your supported encoding. - -Note for PuTTY users --------------------- - -It turns out that PuTTY does not translate Shift+Arrow combination into -X key code (like xterm does), so mappings will not work for this -terminal. I have modified initialization script to use instead -of + in Unix environment. - -Perl scripts ------------- - -Some box-drawing related procedures are more naturally done with -external scripts. These scripts take ascii standard input and produce -utf8 encoded standard output. - -bdua2b.pl -- converts regular '+-|'-style drawing into single-line utf8 - boxdrawing. This script has does not just blindly replace characters, - but instead looks to the neighbourhood and chooses boxdrawing - character that fits best. Use this script as a filter to convert - existing ascii drawings. - Option -ss selects single border characters, -sd -- double border, - -sh -- single vertical double horizontal, -sv single horizontal double - vertical. - -outline.pl -- outlines groups of similar characters in the input with - boxdrawing characters. Option -d makes output twice as wide, options - -s* select boxdrawing flavor as in previous script. - For example, - - aaaacc - abbcc - ccbbc - cccb - -will be converted into - - ┌───┬─┐ - │┌─┬┘┌┘ - ├┴┐└┐│ - │ └┐├┘ - └──┴┘ - -or - - ┌───────┬───┐ - │ ┌───┬─┘ ┌─┘ - ├─┴─┐ └─┐ │ - │ └─┐ ├─┘ - └─────┴─┘ - - -Both scripts were tested with ActivePerl 5.6.1. - -Plans: ------- -* Support double boxes in a cleaner way. - -Installation ------------- -Copy boxdraw.vim to the place where you normally keep vim scripts (e.g. ~/.vim -or c:\vim\vimfiles) and source it every time you want to draw a diagram or nice -table. - -You may wish also to add this to your menu by adding a line to your .gvimrc -(_gvimrc) file (use actual path to boxdraw.vim): -:menu Tools.Bo&x\ Draw :so ~/.vim/boxdraw.vim - -Environment ------------ -I run Windows and use boxdraw.vim in gvim (it supports utf-8 very -nicely) and bd-single in vim (its support of utf-8 is kind of unclear -for me). Both major Windows monospaced fonts (Courier New and Lucida -Console) support wide range of Unicode characters, including box -drawing. - -Why use box drawing characters? -------------------------------- -These characters are in Unicode standard for compatibility with wide -range of existing 8-bit encodings that have them. The wording of Unicode -standard discourages usage of such characters, other than for the -purpose of converting between encodigns and storage of legacy data. -Having said all that I found that sometimes a picture, even crude and -primitive, is worth pages of explanations. Just about the only way to -include picture in source code is to use ascii or "ansi" art. Ascii is -more compatible, but "ansi" looks way better. Since I have to use -Unicode to include cyrillic characters in comments anyway, I decided to -stop on "ansi" art as a format of choice for in-source drawings. - -Author ------- -Andrew Nikitin - -History -------- -2002-01-09 -- v0.0 -- initial upload, single boxes in utf-8 encoding -2002-01-10 -- v0.1 -- double boxes -2002-01-30 -- v0.2 -- single-byte, box->ascii conversion -2003-11-24 -- v0.3 -- perl scripts + some rectangular block movements -2004-06-18 -- v0.4 -- following the lines, updated perl scripts -2004-11-26 -- v1.0 -- combined single-byte and utf8 versions, included -sampler.txt to help determine encoding -2008-12-17 -- v1.1 -- special processing for line-block movements, changed cabbr for perl diff --git a/Editor/vim/boxdraw/boxdraw.vim b/Editor/vim/boxdraw/boxdraw.vim deleted file mode 100644 index 284232f..0000000 --- a/Editor/vim/boxdraw/boxdraw.vim +++ /dev/null @@ -1,291 +0,0 @@ -" Box drawing module for Vim 6.0 -" (C) Andrew Nikitin, 2002 -" 2002-01-07 -- created by nsg -" 2002-01-08 -- first box drawing (single only) -" 2002-01-09 -- (00:42) fixed col(".") bug (note vim bug k"tylj does not retu) -" 2002-01-09 -- optimize -" 2002-01-10 -- double boxes -" 2002-01-16 -- use script-local var and access function instead of global -" 2002-01-30 -- ,a mapping (box->ascii conversion) -" 2003-11-10 -- implemented MB avoiding "number Ctl-V" -" 2004-06-18 -- fixed ToAscii so it replaces "─"; trace path (g+arrow) -" 2004-06-23 -- merged single-byte and utf-8 support in one file -" 2004-06-30 -- do not use shift+arrows unless in win32 -" 2008-12-17 -- special processing for line-block movements, changed cabbr for -" perl - - -let s:o_utf8='--0251--001459--50585a----------0202----0c1c----525e------------51--51--53--5f--54--60------------------------------------------00185c--003468------------------1024----2c3c--------------------56--62--65--6b--------------------------------------------------505b5d----------506769----------5561------------646a------------57--63----------66--6c------------------------------------------------------------------01' -let s:i_utf8='44cc11------------------14------50------05------41------15--------------51--------------54--------------45--------------55--------------------------------------88221824289060a009060a81428219262a9162a29864a889468a9966aa14504105------40010410' -let s:o_cp437='--b3ba--c4c0d3--cdd4c8----------b3b3----dac3----d5c6------------ba--ba--d6--c7--c9--cc------------------------------------------c4d9bd--c4c1d0------------------bfb4----c2c5--------------------b7--b6--d2--d7--------------------------------------------------cdbebc----------cdcfca----------b8b5------------d1d8------------bb--b9----------cb--ce' -let s:i_cp437='----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------115191626090a222a08242815005455415445519260a288aa82a88aa894698640609182466994114' - -let s:scriptfile=expand(":h") - -" -" Activate mode. Assigned to ,b macro. -" -fu! S() - if has("gui_running") - " se enc=utf8 - en - let s:ve=&ve - setl ve=all - " Note that typical terminal emulator program (Putty, in particular) does - " not support Shift arrows too good. You will, probably, have to redefines - " those to, say, - " , etc. - if has("win32") - " Under Windows Shift+Arrows works quite smooth, unlike most terminals - nm :call M(1,'k') - nm :call M(16,'j') - nm :call M(64,'h') - nm :call M(4,'l') - nm g :call G(0) - nm g :call G(1) - nm g :call G(2) - nm g :call G(3) - vm :call MB('k') - vm :call MB('j') - vm :call MB('h') - vm :call MB('l') - else - nm :call M(1,'k') - nm :call M(16,'j') - nm :call M(64,'h') - nm :call M(4,'l') - nm g :call G(0) - nm g :call G(1) - nm g :call G(2) - nm g :call G(3) - vm :call MB('k') - vm :call MB('j') - vm :call MB('h') - vm :call MB('l') - en - vmap a :ToAscii - nm e :call E() - nm s :call SetLT(1) - nm d :call SetLT(2) - exec "cabbr <"."buffer> perl perl ".s:scriptfile - - let s:bdlt=1 - nm b x - nun b -endf - -fu! s:SetLT(thickness) - let s:bdlt=a:thickness -endf - -" Deactivate mode. -" Unmap macros, restore &ve option -fu! E() - if has("win32") - " Under Windows Shift+Arrows works quite smooth, unlike most terminals - nun - nun - nun - nun - nun g - nun g - nun g - nun g - vu - vu - vu - vu - else - nun - nun - nun - nun - nun g - nun g - nun g - nun g - vu - vu - vu - vu - en - nun e - nm b :call S() - cuna perl - let &ve=s:ve - unlet s:ve - "echo "Finished Boxdrawing mode" -endf - -fu! s:GetBoxCode(char) - " check if symbol from unicode boxdrawing range - " E2=1110(0010) - " 25= 10(0101)xx - if 'utf-8'== &enc - if(0xE2==char2nr(a:char[0])&&0x25==char2nr(a:char[1])/4) - retu '0x'.strpart(s:i_utf8,2*(char2nr(a:char[1])%4*64+char2nr(a:char[2])%64),2) - en - else " Assume cp437 encoding - retu '0x'.strpart(s:i_cp437,2*char2nr(a:char),2) - en - retu 0 -endf - -" Try neihgbour in direction 'd' if c is true. Mask m for the direction -" should also be supplied. -" Function returns neighboring bit -" Unicode entries are encoded in utf8 as -" 7 bit : 0vvvvvvv -" 11 bit : 110vvvvv 10vvvvvv -" 16 bit : 1110vvvv 10vvvvvv 10vvvvvv -fu! s:T(c,d,m) - if(a:c) - exe 'norm mt'.a:d.'"tyl`t' - let c=s:GetBoxCode(@t) - retu c%a:m*4/a:m - en - retu 0 -endf - -" 3*4^x, where x=0,1,2,3 -" fu! s:Mask(x) -" retu ((6+a:x*(45+a:x*(-54+a:x*27)))/2) -" endf - -" Move cursor (follow) in specified direction -" Return new direction if new position is valid, -1 otherwise -" dir: 'kljh' -" ^>V< -" 0123 -" mask: 3 12 48 192 -" let @x=3|echo (6+@x*(45+@x*(-54+@x*27)))/2 -" -fu! F(d) - exe 'norm '.('kljh'[a:d]).'"tyl' - let c=s:GetBoxCode(@t) - let i=0 - let r=-1 - while i<4 - if 0!=c%4 && a:d!=(i+2)%4 - if r<0 - let r=i - else - retu -1 - endif - endif - let c=c/4 - let i=i+1 - endw - retu r -endf - -fu! G(d) - let y=line(".") - let x=virtcol(".") - let n=a:d - while n>=0 - let n=s:F(n) - if y==line(".") && x==virtcol(".") - echo "Returned to same spot" - break - endif - endw -endf - -" Move cursor in specified direction (d= h,j,k or l). Mask s for -" the direction should also be supplied -" -fu! M(s,d) - let t=@t - let x=s:T(1u25".o.a:d - en - else - let o=strpart(s:o_cp437,2*c,2) - if o!='--' && o!='' - exe "norm r\x".o.a:d - en - en -" "echo "Boxdrawing mode" -endf - -scriptencoding utf8 -command! -range ToAscii :silent ,s/┌\|┬\|┐\|╓\|╥\|╖\|╒\|╤\|╕\|╔\|╦\|╗\|├\|┼\|┤\|╟\|╫\|╢\|╞\|╪\|╡\|╠\|╬\|╣\|└\|┴\|┘\|╙\|╨\|╜\|╘\|╧\|╛\|╚\|╩\|╝/+/ge|:silent ,s/[│║]/\|/ge|:silent ,s/[═─]/-/ge - -command! -range ToHorz :,s/─\|═/-/g -command! -range ToHorz2 :,s/─/-/g -" 0000000: 636f 6d6d 616e 6421 202d 7261 6e67 6520 command! -range -" 0000010: 546f 486f 727a 203a 3c6c 696e 6531 3e2c ToHorz :, -" 0000020: 3c6c 696e 6532 3e73 2fe2 9480 5c7c e295 s/...\|.. -" 0000030: 9029 2f6f 2f67 0d0a .)/o/g.. -command! -range ToVert :,s/│\|║/\|/g - -" Move block dispatch -fu! s:MB(d) - if visualmode()=='' || visualmode()=='v' - call s:MRB(a:d) - elseif visualmode()=='V' - call s:MLB(a:d) - en -endf - -" Move line block -fu! s:MLB(d) - if a:d=='j' || a:d=='k' - let l:cmd= "norm gv\"yd".a:d."\"yP1V" - exe l:cmd - elseif a:d=='h' - normal gv - :'<,'>s/^.// - normal gv - elseif a:d=='l' - normal gv - :'<,'>s/^/ / - normal gv - en -endf - -" Move Rectangular block -" sideeffect: stores contents of a block in "y -" 1 does not work good in 6.0 when multibyte characters are involved -" gvp does not work good ... -" gv also has some problems -" See http://vim.sourceforge.net/tips/tip.php?tip_id=808 for different way to -" paste -fu! s:MRB(d) - " It seems that rectangular boxes and multibyte do not live together too - " good asof version 6.3 - " Normally something like - " exe 'norm gv"yygvr '.a:d.'1"ypgv' - " should have worked - let l:y1=line(".") - let l:x1=virtcol(".") - "echo l:x1."-".l:y1 - normal gv"yygvo - let l:y2=line(".") - let l:x2=virtcol(".") - if l:x1>l:x2 | let l:t=l:x1 | let l:x1=l:x2 | let l:x2=l:t | endif - if l:y1>l:y2 | let l:t=l:y1 | let l:y1=l:y2 | let l:y2=l:t | endif - let l:pos=l:y1."G0" - if 1 ,b :call S() -if has("win32") - " Under win32 activate boxdrwaing mode upon start. - " If undesirable, prepend with :nmap ,b - " - :normal ,b -else -en diff --git a/Editor/vim/boxdraw/outline.pl b/Editor/vim/boxdraw/outline.pl deleted file mode 100644 index f095e7f..0000000 --- a/Editor/vim/boxdraw/outline.pl +++ /dev/null @@ -1,74 +0,0 @@ -# outlines groups of similar characters -# 2003-11-24 15:07:28 Created by nsg -# 2004-06-18 14:29:45 changed hex boxset to x; added double, horz, vert boxsets -use strict; -use utf8; -use Getopt::Std; - -our ( - $opt_s, # boxset (x=hex) - $opt_d, # double each input character - $opt_e, # output encoding -); -getopts("s:de:"); -$opt_s='s' if '' eq $opt_s; -$opt_e='utf8' if '' eq $opt_e; - -binmode (STDIN, ":encoding($opt_e)"); -binmode (STDOUT, ":encoding($opt_e)"); -#binmode (STDOUT, ":encoding(utf8)"); -my $p=''; - -my %boxset=( -# 1|.,'}\u{25',"1 (_2 ]\ o_utf8) {~ 4#.2*#:i.16 - 's'=>" \x{2502}\x{2500}\x{2514}\x{2502}\x{2502}\x{250c}\x{251c}\x{2500}\x{2518}\x{2500}\x{2534}\x{2510}\x{2524}\x{252c}\x{253c}\n", - 'd'=>" \x{2551}\x{2550}\x{255a}\x{2551}\x{2551}\x{2554}\x{2560}\x{2550}\x{255d}\x{2550}\x{2569}\x{2557}\x{2563}\x{2566}\x{256c}\n", - 'h'=>" \x{2502}\x{2550}\x{2558}\x{2502}\x{2502}\x{2552}\x{255e}\x{2550}\x{255b}\x{2550}\x{2567}\x{2555}\x{2561}\x{2564}\x{256a}\n", - 'v'=>" \x{2551}\x{2500}\x{2559}\x{2551}\x{2551}\x{2553}\x{255f}\x{2500}\x{255c}\x{2500}\x{2568}\x{2556}\x{2562}\x{2565}\x{256b}\n", -); - -my $BOX=$boxset{$opt_s} || $boxset{'s'}; - -# corners/splits: -# ┌┬┐╓╥╖╒╤╕╔╦╗ 6ec -# ├┼┤╟╫╢╞╪╡╠╬╣ 7fd -# └┴┘╙╨╜╘╧╛╚╩╝ 3b9 -# round corners: -# 256d 256e -# 2570 256f -# horizontal -# ═ ─ -# vertical -# │ ║ - -while(){ - chomp; - s/./$&$&/g if $opt_d; - process_line(); - $p=$_; -} -$_=''; -process_line(); - -sub process_line -{ - my $out; - my $l=length; - $l=length($p) if length($p)>$l; - for my$i(0..$l) { - my $c=0; - $c|=1 if sc($p,$i-1) ne sc($p,$i); - $c|=2 if sc($p,$i) ne sc($_,$i); - $c|=4 if sc($_,$i) ne sc($_,$i-1); - $c|=8 if sc($_,$i-1) ne sc($p,$i-1); - $out.=substr($BOX,$c,1) if 'x' ne $opt_s; - $out.=sprintf"%1x",$c if 'x' eq $opt_s; - } - print "$out\n"; -} - -sub sc # (str, index) -{ - return ' ' if 0>$_[1] || $_[1]>=length($_[0]); - return substr($_[0],$_[1],1); -} diff --git a/Editor/vim/boxdraw/sampler.txt b/Editor/vim/boxdraw/sampler.txt deleted file mode 100644 index 1f6aad8..0000000 --- a/Editor/vim/boxdraw/sampler.txt +++ /dev/null @@ -1,13 +0,0 @@ -Box drawing characters sampler. (C) nsg, 2004 -╒╕╔╗╓╖┌╥─┐ -├┼╢║╟╜└╫┬┤ utf-8 -╞╪╣╠╩╤╦╬╡│ -╘╧╝╚═╛╙╨┴┘ - - koi8-r, koi8-u* - - -ոɻֿ· -öŴٺ cp437 (A.K.A dos), cp737, cp86x, cp85x*, cp895, etc. -ƾص˹ -ϼн diff --git a/Editor/vim/bundle/Vundle.vim b/Editor/vim/bundle/Vundle.vim deleted file mode 160000 index 88688fe..0000000 --- a/Editor/vim/bundle/Vundle.vim +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 88688fe453038ac1ac26e31646cfbec50fca2fb7 diff --git a/Editor/vim/bundle/syntastic b/Editor/vim/bundle/syntastic deleted file mode 160000 index 8e67278..0000000 --- a/Editor/vim/bundle/syntastic +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 8e672780e76c0a774b7fe834eed9652ccd684c24 diff --git a/Editor/vim/bundle/ultisnips b/Editor/vim/bundle/ultisnips deleted file mode 160000 index 71c3972..0000000 --- a/Editor/vim/bundle/ultisnips +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 71c39721de9cb2d67478e8b8c1a543e006fb67df diff --git a/Editor/vim/bundle/vim-snippets b/Editor/vim/bundle/vim-snippets deleted file mode 160000 index 89a4e54..0000000 --- a/Editor/vim/bundle/vim-snippets +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 89a4e548441debc2d54267ea6088b048a29273de diff --git a/Editor/vim/bundle/vim-surround b/Editor/vim/bundle/vim-surround deleted file mode 160000 index e49d6c2..0000000 --- a/Editor/vim/bundle/vim-surround +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e49d6c2459e0f5569ff2d533b4df995dd7f98313 diff --git a/Editor/vim/doc/DrawIt.txt b/Editor/vim/doc/DrawIt.txt deleted file mode 100644 index 8e72f64..0000000 --- a/Editor/vim/doc/DrawIt.txt +++ /dev/null @@ -1,489 +0,0 @@ -DrawIt.txt* The DrawIt Tool Nov 25, 2013 - -Authors: Charles E. Campbell - Sylvain Viart - (remove NOSPAM from Campbell's email first) -Copyright: Copyright (C) 2004-2013 Charles E. Campbell - Permission is hereby granted to use and distribute this code, - with or without modifications, provided that this copyright - notice is copied with it. Like anything else that's free, - DrawIt.vim and DrawItPlugin.vim are provided *as is*; it comes - with no warranty of any kind, either expressed or implied. By - using this plugin, you agree that in no event will the copyright - holder be liable for any damages resulting from the use of this - software. - - -============================================================================== -1. Contents *drawit-contents* {{{1 - - 1. Contents......................: |drawit-contents| - 2. DrawIt Manual.................: |drawit| - 3. DrawIt Usage..................: |drawit-usage| - Starting....................: |drawit-start| - Stopping....................: |drawit-stop| - User Map Protection.........: |drawit-protect| - Drawing.....................: |drawit-drawing| - Tip.........................: |drawit-tip| - Changing Drawing Characters.: |drawit-setdrawit| - Moving......................: |drawit-moving| - Erasing.....................: |drawit-erase| - Example.....................: |drawit-example| - Visual Block Mode...........: |drawit-visblock| - Brushes.....................: |drawit-brush| - DrawIt Modes................: |drawit-modes| - 4. DrawIt History................: |drawit-history| - - -============================================================================== -2. DrawIt Manual *drawit* {{{1 - *drawit-manual* - /===============+============================================================\ - || Starting & | || - || Stopping | Explanation || - ++--------------+-----------------------------------------------------------++ - || \di | start DrawIt |drawit-start| || - || \ds | stop DrawIt |drawit-stop| || - || :DIstart | start DrawIt |drawit-start| || - || :DIstart S | start DrawIt in single-bar mode |drawit-start| || - || :DIstart D | start DrawIt in double-bar mode |drawit-start| || - || :DIsngl | start DrawIt in single-bar mode |drawit-start| |drawit-sngl| || - || :DIdbl | start DrawIt in double-bar mode |drawit-start| |drawit-dbl| || - || :DIstop | stop DrawIt |drawit-stop| || - || :DrawIt[!] | start/stop DrawIt |drawit-start| |drawit-stop| || - || | || - ++==============+===========================================================++ - || Maps | Explanation || - ++--------------+-----------------------------------------------------------++ - || | The DrawIt routines use a replace, move, and || - || | replace/insert strategy. The package also lets one insert|| - || | spaces, draw arrows by using the following characters or || - || | keypad characters: || - || +-----------------------------------------------------------++ - || | move and draw left |drawit-drawing| || - || | move and draw right, inserting lines/space as needed || - || | move and draw up, inserting lines/space as needed || - || | move and draw down, inserting lines/space as needed || - || | move cursor left |drawit-move| || - || | move cursor right, inserting lines/space as needed || - || | move cursor up, inserting lines/space as needed || - || | move cursor down, inserting lines/space as needed || - || | toggle into and out of erase mode || - || > | insert a > and move right (draw -> arrow) || - || < | insert a < and move left (draw <- arrow) || - || ^ | insert a ^ and move up (draw ^ arrow) || - || v | insert a v and move down (draw v arrow) || - || | replace with a \, move down and right, and insert a \ || - || | replace with a /, move down and left, and insert a / || - || | replace with a /, move up and right, and insert a / || - || | replace with a \, move up and left, and insert a \ || - || \> | insert a fat > and move right (draw -> arrow) || - || \< | insert a fat < and move left (draw <- arrow) || - || \^ | insert a fat ^ and move up (draw ^ arrow) || - || \v | insert a fat v and move down (draw v arrow) || - || | drag and draw with current brush |drawit-brush| || - || | drag and move current brush |drawit-brush| || - || | || - ||==============+===========================================================++ - ||Visual Cmds | Explanation || - ||--------------+-----------------------------------------------------------++ - || | The drawing mode routines use visual-block mode to || - || | select endpoints for lines, arrows, and ellipses. Bresen- || - || | ham and Bresenham-like algorithms are used for this. || - || | || - || | These routines need a block of spaces, and so the canvas || - || | routine must first be used to create such a block. The || - || | canvas routine will query the user for the number of || - || | lines to hold |'textwidth'| spaces. || - || +-----------------------------------------------------------++ - || \a | draw arrow from corners of visual-block selected region || |drawit-a| - || \b | draw box on visual-block selected region || |drawit-b| - || \c | the canvas routine (will query user, see above) || |drawit-c| - || \e | draw an ellipse on visual-block selected region || |drawit-e| - || \f | flood figure with a character (you will be prompted) || |drawit-f| - || \l | draw line from corners of visual-block selected region || |drawit-l| - || \s | spacer: appends spaces up to the textwidth (default: 78) || |drawit-s| - || | || - ++==============+===========================================================++ - || Function and Explanation || - ++--------------+-----------------------------------------------------------++ - || :call SetDrawIt('vertical','horizontal','crossing','\','/','X','*') || - || set drawing characters for motions for moving || - || and for the ellipse drawing boundary |drawit-setdrawit| || - || default motion || - || | up/down, || - || - left/right, || - || + -| crossing, || - || \ downright, || - || / downleft, and || - || X \/ crossing || - ++=======================+==================================================++ - || Commands | Explanation || - ++-----------------------+--------------------------------------------------++ - || :SetBrush a-z | sets brush (register) to given register || - || :'<,'>SetBrush a-z | yanks visual block to brush |drawit-brush||| || - || :DInrml | switch to normal mode |drawit-nrml| || - || :DIsngl | switch to single-line mode |drawit-sngl| || - || :DIdbl | switch to double-line mode |drawit-dbl| || - \============================================================================/ - - -============================================================================== -3. DrawIt Usage *drawit-usage* {{{1 - -STARTING *drawit-start* {{{2 -\di (starts in normal drawing mode) *drawit-\di* -:DrawIt (starts in normal drawing mode) *drawit-DrawIt* -:DIstart (starts in normal drawing mode) *drawit-DIstart* -:DIstart S (starts in single-bar drawing mode) -:DIstart D (starts in double-bar drawing mode) -:DInrml (starts in normal drawing mode) *drawit-DInrml* -:DIsngl (starts in single-bar drawing mode) *drawit-DIsngl* -:DIdbl (starts in double-bar drawing mode) *drawit-DIdbl* - -Typically one puts into the .vim/plugin directory -(vimfiles\plugin for Windows) where it becomes always available. It uses a -minimal interface (\di: you can think of it as *D*raw*I*t or *D*rawIt -*I*nitialize) to start it and (\ds: *D*rawIt *S*top) to stop it. Instead of -using "\" you may specify your own preference for a map leader (see -|mapleader|). - -With a trailing 'S', :DIstart will begin in single-bar mode (see |drawit-sngl|). -With a trailing 'D', :DIstart will begin in double-bar mode (see |drawit-dbl|). -Similarly, :DIsngl and :DIdbl will start DrawIt as well as begin in -single-bar or double-bar mode, respectively. - -A message, "[DrawIt]", will appear on the message line. - - -STOPPING *drawit-stop* {{{2 -\ds -:DIstop -:DrawIt! - -When you are done with DrawIt, use \ds to stop DrawIt mode. Stopping DrawIt -will restore your usual options and remove the maps DrawIt set up. - -A message, "[DrawIt off]", will appear on the message line. - - *drawit-utf16* - *drawit-utf8* *drawit-unicode* -NORMAL, SINGLE BAR, AND DOUBLE BAR MODES *drawit-sngl* *drawit-dbl* -:DInrml :DIsngl :DIdbl - -One may use these commands to start up Drawit in normal, single-bar, or -double-bar modes, respectively. When your |'encoding'| is utf-8 or utf-16, -DrawIt supports drawing with special box characters (single-bar, double_bar). -These commands are also used to switch to normal, single-bar, or double-bar -modes. - - -USER MAP PROTECTION *drawit-protect* {{{2 - -Starting DrawIt causes it to set up a number of maps which facilitate drawing. -DrawIt accommodates users with conflicting maps by saving both maps and user -options and before setting them to what DrawIt needs. When you stop DrawIt -(|drawit-stop|), DrawIt will restore the user's maps and options as they were -before DrawIt was started. - - -OPTIONS *drawit-options* {{{2 - - *g:drawit_insertmode* -g:drawit_insertmode : if this variable exists and is 1 then maps are - made which make cursor-control drawing available - while in insert mode, too. Otherwise, DrawIt's - maps only affect normal mode. - -DRAWING *drawit-drawing* {{{2 - -After DrawIt is started, use the number pad or arrow keys to move the cursor -about. As the cursor moves, DrawIt will then leave appropriate "line" -characters behind as you move horizontally, vertically, or diagonally, and -will transparently enlarge your file to accommodate your drawing as needed. -The trail will consist of -, |, \, / characters (depending on which direction -and SetDrawIt() changes), and + and X characters where line crossings occur. -You may use h-j-k-l to move about your display and generally use editing -commands as you wish even while in DrawIt mode. - -Another tool that may be used to convert Ascii-art into nice pictures is -available at https://github.com/christiangoltz/shaape . - - -CHANGING DRAWING CHARACTERS *drawit-setdrawit* {{{2 - -The SetDrawIt() function is available for those who wish to change the -characters that DrawIt uses. > - - ex. :call SetDrawIt('*','*','*','*','*','*','*') - ex. :call SetDrawIt('-','|','-','\','/','/','*') -< -The first example shows how to change all the DrawIt drawing characters to -asterisks, and the second shows how to give crossing priority to - and /. -The default setting is equivalent to: > - - :call SetDrawIt('|','-','+','\','/','X','*') -< -where SetDrawit()'s arguments refer, in order, to the > - - vertical drawing character - horizontal drawing character - horizontal/vertical crossing drawing character - down right drawing character - down left drawing character - diagonal crossing drawing character - ellipse boundary drawing character -< - -TIP *drawit-tip* - -I have found that sometimes one or more of the , , , -and keys give unique sequences but are not interpreted -properly by Vim. This problem impacts DrawIt as it uses those four -keys to signify diagonal moves/drawing. One solution I use is to -put into my <.vimrc> file mapings like: - - map ^V... - -where the ellipsis (...) is the actual character sequence produced by -hitting the key. The way to generate such maps is to type "map ", -followed by three control-v presses, press the associated key, then -a space followed by the proper interpretation sequence (ie. ). - - -MOVING *drawit-move* *drawit-moving* {{{2 - -DrawIt supports shifting the arrow keys to cause motion of the cursor. The -motion of the cursor will not modify what's below the cursor. The cursor -will move and lines and/or spaces will be inserted to support the move as -required. Your terminal may not support shifted arrow keys, however, or Vim -may not catch them as such. For example, on the machine I use, shift-up -() produced [161q, but vim didn't know that sequence was a . -I merely made a nmap: - - nmap [161q - -and vim thereafter recognized the command. - - -ERASING *drawit-erase* {{{2 - - -The key will toggle DrawIt's erase mode/DrawIt mode. When in [DrawIt -erase] mode, a message "[DrawIt erase]" will appear and the number pad will -now cause spaces to be drawn instead of the usual drawing characters. The -drawing behavior will be restored when the key toggles DrawIt back -to regular DrawIt mode. - - -EXAMPLES *drawit-example* {{{2 - -Needless to say, the square spirals which follow were done with DrawIt and -a bit of block editing with Vim: > - - +------------ -----------+ +------------ -----------+ +------------ - |+----------+ +---------+| |+----------+ +---------+| |+----------+ - ||+--------+| |+-------+|| ||+--------+| |+-------+|| ||+--------+| - |||-------+|| ||+------||| |||-------+|| ||+------||| |||-------+|| - ||+-------+|| ||+------+|| ||+-------+|| ||+------+|| ||+-------+|| - |+---------+| |+--------+| |+---------+| |+--------+| |+---------+| - +-----------+ +----------+ +-----------+ +----------+ +-----------+ - -VISUAL BLOCK MODE FOR ARROWS LINES BOXES AND ELLIPSES *drawit-visblock* {{{2 - -\a : draw arrow from corners of visual-block selected region *drawit-a* -\b : draw box on visual-block selected region *drawit-b* -\c : the canvas routine (will query user, see above) *drawit-c* -\e : draw an ellipse on visual-block selected region *drawit-e* -\f : flood figure with a character (you will be prompted) *drawit-f* -\l : draw line from corners of visual-block selected region *drawit-l* -\s : spacer: appends spaces up to the textwidth (default: 78) *drawit-s* - -The DrawIt package has been merged with Sylvain Viart's drawing package (by -permission) which provides DrawIt with visual-block selection of -starting/ending point drawing of arrows (\a), lines (\l), and boxes (\b). -Additionally I wrote an ellipse drawing function using visual block -specification (|drawit-e|). - -One may create a block of spaces for these maps to operate in; the "canvas" -routine (\c) will help create such blocks. First, the s:Canvas() routine will -query the user for the number of lines s/he wishes to have, and will then fill -those lines with spaces out to the |'textwidth'| if user has specified it; -otherwise, the display width will be used. - -Although most of the maps use visual-block selection, that isn't true of the -\f map. Instead, it assume that you have already drawn some closed figure -and want to fill it with some character. - -The Sylvain Viart functions and the ellipse drawing function depend -upon using visual block mode. As a typical use: > - - Example: * \h - DrawIt asks: how many lines under the cursor? 10 - DrawIt then appends 10 lines filled with blanks - out to textwidth (if defined) or 78 columns. - * ctrl-v (move) \b - DrawIt then draws a box - * ctrl-v (move) \e - DrawIt then draws an ellipse -< -Select the first endpoint with ctrl-v and then move to the other endpoint. -One may then select \a for arrows, \b for boxes, \e for ellipses, or \l for -lines. The internal s:AutoCanvas() will convert tabs to spaces and will -extend with spaces as needed to support the visual block. Note that when -DrawIt is enabled, virtualedit is also enabled (to "all"). -> - Examples: - - __ _ *************** +-------+ - \_ _/ **** **** | | - \_ _/ ** ---------> ** | | - \_ _/ **** **** | | - \__/ <------- *************** +-------+ - - \l \a \e and \a \b -< - *drawit-setbrush* -BRUSHES *drawit-brush* {{{2 -> - :SetBrush [a-z] -< - Set the current brush to the selected brush register: -> - ex. :SetBrush b - - :'<,'>SetBrush [a-z] -< - Select text for the brush by using visual-block mode: ctrl-v, move . - Then set the current text into the brush register: (default brush: a) -> - -< - Select a visual-block region. One may use "ay, for example, - to yank selected text to register a. -> - -< - One may drag and draw with the current brush (default brush: a) - by holding down the shift key and the leftmouse button and moving - the mouse. Blanks in the brush are considered to be transparent. -> - -< - One may drag and move a selection with . First, - select the region using the . Release the mouse button, - then press ctrl and the button; while continuing to press - the button, move the mouse. The selected block of text will then - move along with the cursor. -> - \ra ... \rz -< - Replace text with the given register's contents (ie. the brush). -> - \pa ... \pz -< - Like \ra ... \rz, except that blanks are considered to be transparent. - - Example: Draw the following > - \ \ - o o - * - --- -< Then use ctrl-v, move, "ay to grab a copy into register a. - By default, the current brush uses register a (change brush - with :SetBrush [reg]). Hold the and - keys down and move the mouse; as you move, a copy of the - brush will be left behind. - - -DRAWIT MODES *drawit-modes* {{{2 - - -[DrawIt] regular DrawIt mode (|drawit-start|) - -[DrawIt off] DrawIt is off (|drawit-stop| ) - -[DrawIt erase] DrawIt will erase using the number pad (|drawit-erase|) - - g:DrChipTopLvlMenu: by default its "DrChip"; you may set this to whatever - you like in your <.vimrc>. This variable controls where - DrawIt's menu items are placed. - - -============================================================================== -4. History *drawit-history* {{{1 - - 13 Sep 05, 2013 * improved s:Strlen() -- now uses |strdisplaywidth()| - if available. - Sep 13, 2013 * (Paul Wagland) found a case where lines were - being drawn with the wrong character. This - affected the Bresenham-algorithm based - drawing facility (ie. lines and arrows - specified by visual blocks; - |drawit-a|, |drawit-l|). - 12 Nov 16, 2012 * (Alexandre Viau) arrows weren't being drawn. - Fixed. - Nov 29, 2012 * (Kim Jang-hwan) reported that with - g:Align_xstrlen set to 3 that the cursor was - moved (linewise) after invocation. This - problem also afflicted DrawIt. Fixed. - 11 Jan 21, 2010 * (Evan Stern) several places were using - hardcoded drawing characters instead of - b:di_... equivalents. - Feb 22, 2011 * for menus, &go =~# used to insure correct case - Sep 22, 2011 * ctrl-leftmouse (see |drawit-brush|) now moves the - selected text entirely, no longer leaving a copy - of the text where it was initially. - Nov 07, 2011 * included support for utf-8 box drawing characters - Nov 16, 2011 * included support for utf-8 single-double characters - Nov 16, 2011 * included support for cp437 box drawing characters - Dec 06, 2011 * included support for box and line drawing (\b, \l) - support for utf-8 / cp437 box drawing characters - Dec 06, 2011 * fat arrows now use utf-8 characters when available - Jan 30, 2012 * \f supported when using utf-8/cp437 box drawing - characters as boundary characters - 10 Jun 12, 2008 * Fixed a bug with ctrl-leftmouse (which was leaving - a space in the original selected text) - Mar 24, 2009 * :DrawIt starts, :DrawIt! stops DrawIt mode. - Mar 24, 2009 * I've included