From 86634afc3d4d4542ffec683ee68eb547286629af Mon Sep 17 00:00:00 2001 From: Mike Bell Date: Wed, 29 Apr 2026 10:05:07 +0300 Subject: [PATCH] fix: remove legacy terminal escapes --- vimrc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/vimrc b/vimrc index 6b13a36..cc72a2a 100644 --- a/vimrc +++ b/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