blob: 4ba91a2fb4d0f4c3d6488d4f6415838c396f0943 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
if &cp || exists('g:loaded_zwspace')
finish
endif
let g:loaded_zwspace = v:true
function s:ConcealZWSpaces()
if exists('w:zwspaces')
for i in w:zwspaces
call matchdelete(i)
endfor
unlet w:zwspaces
endif
let w:zwspaces = [
\ matchadd('Conceal', '\u200B'),
\ matchadd('Conceal', '\u200C'),
\ matchadd('Conceal', '\u200D'),
\ matchadd('Conceal', '\uFEFF'),
\ ]
endfunction
autocmd BufEnter * call <SID>ConcealZWSpaces()
|