vim: make listchars customizable and make defaults ascii

master
an 2020-01-06 08:47:57 -05:00
parent 10c661f419
commit 971c7e5d25
2 changed files with 59 additions and 24 deletions

View File

@ -26,4 +26,25 @@ let _agw.colors=[
\ 'base16-unikitty-dark',
\]
let _agw.mode_map.nov='n→'
let _agw.mode_map.noV='n↓'
let _agw.mode_map['no']='n↔'
let _agw.mode_map.niI='←i'
let _agw.mode_map.niR='←R'
let _agw.mode_map.niV='←v'
let _agw.mode_map.v='v→'
let _agw.mode_map.V='v↓'
let _agw.mode_map['']='v↔'
let _agw.mode_map.s='s→'
let _agw.mode_map.S='s↓'
let _agw.mode_map['']='s↔'
let _agw.mode_map.ic='↗c'
let _agw.mode_map.ix='↗x'
let _agw.mode_map.Rc='↗r'
let _agw.mode_map.Rx='↗X'
let _agw.listc.s="·"
let _agw.listc.r="‼"
let _agw.listc.l="¶"
" EOF

View File

@ -2,36 +2,45 @@
let _agw={}
let _agw.mode_map = {
let _agw.mode_map={
\ 'n' : '~ ',
\ 'no' : 'n ',
\ 'nov' : 'n',
\ 'noV' : 'n',
\ 'no' : 'n',
\ 'niI' : 'i',
\ 'niR' : 'R',
\ 'niV' : 'v',
\ 'v' : 'v',
\ 'V' : 'v',
\ '' : 'v',
\ 's' : 's',
\ 'S' : 's',
\ '' : 's',
\ 'nov' : 'n>',
\ 'noV' : 'n_',
\ 'no' : 'n-',
\ 'niI' : '<i',
\ 'niR' : '<R',
\ 'niV' : '<v',
\ 'v' : 'v>',
\ 'V' : 'v_',
\ '' : 'v-',
\ 's' : 's>',
\ 'S' : 's_',
\ '' : 's-',
\ 'i' : 'i ',
\ 'ic' : 'c',
\ 'ix' : 'x',
\ 'ic' : '^c',
\ 'ix' : '^x',
\ 'R' : 'R ',
\ 'Rc' : 'r',
\ 'Rc' : '^r',
\ 'Rv' : "R'",
\ 'Rx' : 'X',
\ 'Rx' : '^X',
\ 'c' : '% ',
\ 'cv' : ":'",
\ 'ce' : ': ',
\ 'r' : '↲ ',
\ 'rm' : '⎬ ',
\ 'r?' : "↲'",
\ '!' : '… ',
\ 't' : '…!',
\ 'r' : '] ',
\ 'rm' : '| ',
\ 'r?' : "]'",
\ '!' : '. ',
\ 't' : '.!',
\}
let _agw.listc={
\ 't': "|-",
\ 's': ".",
\ 'r': "!",
\ 'e': ">",
\ 'p': "<",
\ 'l': "/",
\}
let _agw.languages=[
@ -223,10 +232,15 @@ set belloff=all
if _agw.use_list >= 1
set list
set listchars=tab:├─,space,trail:‼,extends:≫,precedes:≪
let &listchars=
\ "tab:".._agw.listc.t..
\ ",space:".._agw.listc.s..
\ ",trail:".._agw.listc.r..
\ ",extends:".._agw.listc.e..
\ ",precedes:".._agw.listc.p
if _agw.use_list >= 2
set listchars+=eol
let &listchars..="eol:".._agw.listc.l
endif
endif