From 1d127cd49bdfa1c676718a24b487901c1385b65d Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 12 Feb 2018 09:27:59 +0000 Subject: [PATCH] Make insert mode use pipe cursor --- .vimrc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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