diff --git a/.vimrc b/.vimrc index c70d5fd..1e4f956 100644 --- a/.vimrc +++ b/.vimrc @@ -70,6 +70,22 @@ set showcmd " Make vim default to the plus register (system clipboard) when yanking etc. "set clipboard=unnamedplus +" Make the cursor change in insert mode +"Ps = 0 -> blinking block. +"Ps = 1 -> blinking block (default). +"Ps = 2 -> steady block. +"Ps = 3 -> blinking underline. +"Ps = 4 -> steady underline. +"Ps = 5 -> blinking bar (xterm). +"Ps = 6 -> steady bar (xterm). +let &t_SI = "\e[5 q" +let &t_EI = "\e[1 q" + +" optional reset cursor on start: +augroup myCmds +au! +autocmd VimEnter * silent !echo -ne "\e[2 q" +augroup END " Plugin Options {{{1