1
0
Fork 0
mirror of https://github.com/hcartiaux/dotfiles.git synced 2024-10-18 09:15:24 +02:00

[vim] Fix the junk in the command bar at startup

This commit is contained in:
Hyacinthe Cartiaux 2016-03-10 18:45:59 +01:00
parent 01dcec2f0f
commit 7d6155890c

View file

@ -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 = "\<Esc>]50;CustomCursorColor=orange;BlinkingCursorEnabled=1\x7"
let &t_EI = "\<Esc>]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