From 9e80caef23b519bed7beb0b9d3c9c9954283403d Mon Sep 17 00:00:00 2001 From: whiteman808 Date: Sat, 21 Feb 2026 07:10:01 +0100 Subject: [PATCH] [profiles/base] change vimrc --- profiles/base/.vimrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/profiles/base/.vimrc b/profiles/base/.vimrc index 9c166b7..b028bd1 100644 --- a/profiles/base/.vimrc +++ b/profiles/base/.vimrc @@ -15,6 +15,23 @@ inoremap inoremap inoremap +" set cursor shape to block in the normal and command mode, +" in the insert mode change shape to vertical bar, and disable +" blinking in all modes +set guicursor=n-v-c:block +set guicursor+=i-ci-ve:ver25 +set guicursor+=r-cr:hor20 +set guicursor+=o:hor50 +set guicursor+=a:blinkon0 +let &t_EI = "\e[2 q" " solid block +let &t_SR = "\e[4 q" " underline shape +let &t_SI = "\e[6 q" " vertical bar +augroup cursor + autocmd! + autocmd VimEnter * silent execute '!echo -ne "\e[2 q"' | redraw! + autocmd VimLeave * silent execute '!echo -ne "\e[2 q"' | redraw! +augroup END + " fix delay when sending escape sequences from insert mode set timeout set timeoutlen=1000