add character banks

This commit is contained in:
q
2016-05-22 20:05:05 +03:00
parent 4ec911474f
commit ea5ba3665d

View File

@@ -4,14 +4,16 @@
map c1 :call CharDraw_blocks()<CR> map c1 :call CharDraw_blocks()<CR>
map c2 :call CharDraw_lines()<CR> map c2 :call CharDraw_lines()<CR>
map c3 :call CharDraw_doublelines()<CR> map c3 :call CharDraw_doublelines()<CR>
map c4 :call CharDraw_arrows()<CR> map c4 :call CharDraw_doublehorlines()<CR>
map c5 :call CharDraw_extrachars()<CR> map c5 :call CharDraw_doubleverlines()<CR>
map c6 :call CharDraw_arrows()<CR>
map c7 :call CharDraw_extrachars()<CR>
map c0 :call CharDraw_clear()<CR> map c0 :call CharDraw_clear()<CR>
function! CharDraw_clear () function! CharDraw_clear ()
mapclear! mapclear!
set laststatus=2 set laststatus=2
echo 'N to create 80,25 empty drawing. Select chars and draw with numpad' echo 'N to create 80,25 empty drawing. Select ANSI 437 chars and draw with numpad'
map N 80i <Esc>yy24p( map N 80i <Esc>yy24p(
set statusline=%f\ %=\ \[c1-1:chars\ c0:clr]\ (%v,%l)\ HEX:%B set statusline=%f\ %=\ \[c1-1:chars\ c0:clr]\ (%v,%l)\ HEX:%B
endfunction endfunction
@@ -49,6 +51,38 @@ function! CharDraw_lines ()
set statusline=%f\ %=\ [└┴┘├┼┤┌┬┐─│]\(%v,%l)\ HEX:%B set statusline=%f\ %=\ [└┴┘├┼┤┌┬┐─│]\(%v,%l)\ HEX:%B
endfunction endfunction
function! CharDraw_doublehorlines ()
mapclear!
map! 7
map! 8
map! 9
map! 4
map! 5
map! 6
map! 1
map! 2
map! 3
map! -
map! +
set statusline=%f\ %=\ [╘╧╛╞╪╡╒╤╕═│]\(%v,%l)\ HEX:%B
endfunction
function! CharDraw_doubleverlines ()
mapclear!
map! 7
map! 8
map! 9
map! 4
map! 5
map! 6
map! 1
map! 2
map! 3
map! +
map! -
set statusline=%f\ %=\ [╙╨╜╟╫╢╓╥╖─║]\(%v,%l)\ HEX:%B
endfunction
function! CharDraw_doublelines () function! CharDraw_doublelines ()
mapclear! mapclear!
map! 1 map! 1
@@ -89,11 +123,9 @@ function! CharDraw_arrows ()
set statusline=%f\ %=\ [▲▶▼◀◆]\(%v,%l)\ HEX:%B set statusline=%f\ %=\ [▲▶▼◀◆]\(%v,%l)\ HEX:%B
endfunction endfunction
"─ ━ │ ┃ ┄ ┅ ┆ ┇ ┈ ┉ ┊ ┋ ┌ ┍ ┎ ┏
"U+251x ┐ ┑ ┒ ┓ └ ┕ ┖ ┗ ┘ ┙ ┚ ┛ ├ ┝ ┞ ┟
"U+252x ┠ ┡ ┢ ┣ ┤ ┥ ┦ ┧ ┨ ┩ ┪ ┫ ┬ ┭ ┮ ┯
"U+253x ┰ ┱ ┲ ┳ ┴ ┵ ┶ ┷ ┸ ┹ ┺ ┻ ┼ ┽ ┾ ┿
"U+254x ╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋ ╌ ╍ ╎ ╏ "U+254x ╀ ╁ ╂ ╃ ╄ ╅ ╆ ╇ ╈ ╉ ╊ ╋ ╌ ╍ ╎ ╏
"U+255x ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟ "U+255x ═ ║ ╒ ╓ ╔ ╕ ╖ ╗ ╘ ╙ ╚ ╛ ╜ ╝ ╞ ╟
"U+256x ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬ ╭ ╮ ╯ "U+256x ╠ ╡ ╢ ╣ ╤ ╥ ╦ ╧ ╨ ╩ ╪ ╫ ╬ ╭ ╮ ╯
"U+257x ╰ ╴ ╵ ╶ ╷ ╸ ╹ ╺ ╻ ╼ ╽ ╾ ╿ "U+257x ╰ ╴ ╵ ╶ ╷ ╸ ╹ ╺ ╻ ╼ ╽ ╾ ╿
"U+258x ▀ ▁ ▂ ▃ ▄ ▅ ▆ ▇ █ ▉ ▊ ▋ ▌ ▍ ▎ ▏
"U+259x ▐ ░ ▒ ▓ ▔ ▕ ▖ ▗ ▘ ▙ ▚ ▛ ▜ ▝ ▞ ▟