From 7d6155890ce9d2c3cb07638e37520653ff393a54 Mon Sep 17 00:00:00 2001 From: Hyacinthe Cartiaux Date: Thu, 10 Mar 2016 18:45:59 +0100 Subject: [PATCH] [vim] Fix the junk in the command bar at startup --- vim/vimrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 886347f..5571457 100755 --- a/vim/vimrc +++ b/vim/vimrc @@ -126,12 +126,13 @@ syntax enable set cursorline hi CursorLine term=bold cterm=bold ctermbg=blue ctermfg=white +" Custom cursor color in konsole, red in visualization mode, green in insert mode if $XDG_CURRENT_DESKTOP == "KDE" - autocmd VimEnter * silent !konsoleprofile UseCustomCursorColor=1 + autocmd VimEnter * silent !konsoleprofile UseCustomCursorColor=true;BlinkingCursorEnabled=0 && clear let &t_SI = "\]50;CustomCursorColor=orange;BlinkingCursorEnabled=1\x7" let &t_EI = "\]50;CustomCursorColor=red;BlinkingCursorEnabled=0\x7" silent !konsoleprofile CustomCursorColor=red - autocmd VimLeave * silent !konsoleprofile CustomCursorColor=gray;BlinkingCursorEnabled=0 + autocmd VimLeave * silent !konsoleprofile CustomCursorColor=false;BlinkingCursorEnabled=0 endif " Set extra options when running in GUI mode