From 1cdbe8cf36d8c89044d9a0ad8a2465a08b08095b Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 10 Feb 2023 16:21:29 -0600 Subject: [PATCH] vim: change cursor shape when switching modes --- vim/.vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vim/.vimrc b/vim/.vimrc index 99b6235..77f8815 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -44,6 +44,20 @@ else map l endif +" Use a line cursor within insert mode and a block cursor everywhere else. +" +" Reference chart of values: +" 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[6 q" +let &t_EI = "\e[2 q" + + " coding preferences filetype off filetype plugin indent on