[vimrc] change cursor to default

This commit is contained in:
2026-02-17 07:32:21 +01:00
parent 80122275b3
commit 1471fd980e

View File

@@ -15,21 +15,6 @@ inoremap <Down> <Nop>
inoremap <Left> <Nop> inoremap <Left> <Nop>
inoremap <Right> <Nop> inoremap <Right> <Nop>
" set cursor shape to underline in the normal and command mode,
" in the insert mode change shape to vertical bar, and disable
" blinking in all modes
set guicursor=n-c:hor20
set guicursor+=i:ver20
set guicursor+=a:blinkon0
let &t_EI = "\e[4 q" " solid underscore
let &t_SI = "\e[6 q" " vertical bar
if has("autocmd") " reset cursor to underscore after I leave vim
augroup cursor
autocmd!
autocmd VimLeave * silent execute '!echo -ne "\e[4 q"' | redraw!
augroup END
endif
" fix delay when sending escape sequences from insert mode " fix delay when sending escape sequences from insert mode
set timeout set timeout
set timeoutlen=1000 set timeoutlen=1000