fix: remove legacy terminal escapes
This commit is contained in:
12
vimrc
12
vimrc
@@ -146,16 +146,8 @@ let g:syntastic_auto_loc_list = 1
|
||||
let g:syntastic_check_on_open = 1
|
||||
let g:syntastic_check_on_wq = 0
|
||||
|
||||
" Change mode cursor color in xterm
|
||||
" Avoid spawning shell (silent !echo) which causes garbage output in some terminals.
|
||||
" t_EI is sent on VimEnter automatically when leaving insert mode context.
|
||||
if &term =~ "xterm-256color\\|rxvt"
|
||||
let &t_SI = "\033]Pl00d7ff\033\\"
|
||||
let &t_SR = "\033]Plf00000\033\\"
|
||||
let &t_EI = "\033]Plff8708\033\\"
|
||||
autocmd VimEnter * let &t_EI = "\033]Plff8708\033\\" | redraw
|
||||
autocmd VimLeave * try | call writefile(["\033]Plc1ffc1\033\\"], '/dev/tty') | catch | endtry
|
||||
endif
|
||||
" Disable legacy terminal palette escape sequences.
|
||||
" They are not portable and may render as garbage characters in modern terminals.
|
||||
|
||||
" Show tabs and trails
|
||||
set list
|
||||
|
||||
Reference in New Issue
Block a user