vimrc: cursor updates

This commit is contained in:
surtur 2021-03-15 14:16:36 +01:00
parent d3c2cc87fb
commit d748fb4415
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -124,9 +124,11 @@ let g:syntastic_cpp_auto_refresh_includes = 1
let g:syntastic_c_cpplint_exec = 'cppcheck'
" change cursor shape for different editing modes, neovim does this by default
let &t_SI = "\e[6 q"
let &t_SI = "\<Esc>]6;green\x7"
let &t_SR = "\e[4 q"
let &t_EI = "\e[2 q"
" reset cursor when vim exits
autocmd VimLeave * silent !echo -ne "\033]112\007"
command! W execute 'silent w !sudo tee % >/dev/null' | edit!
command! -nargs=* Make write | make! <args> | cwindow