From 23520d25323173ac8d8bac0b1aba6165c4a34997 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 18 Jul 2019 23:36:27 +0300 Subject: [PATCH] .vimrc: Change xterm cursor shape in different modes Normal, insert, replace modes. Urxvt, actually. --- .vimrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.vimrc b/.vimrc index 849d8ac..836b646 100644 --- a/.vimrc +++ b/.vimrc @@ -297,6 +297,19 @@ else vmap XTermPasteBegin("c") cmap cmap + + " https://vim.fandom.com/wiki/Change_cursor_shape_in_different_modes + let &t_EI.="\e[2 q" "EI = NORMAL mode (ELSE) + let &t_SI.="\e[6 q" "SI = INSERT mode + let &t_SR.="\e[4 q" "SR = REPLACE mode + + "Cursor settings: + " 1 -> blinking block + " 2 -> solid block + " 3 -> blinking underscore + " 4 -> solid underscore + " 5 -> blinking vertical bar + " 6 -> solid vertical bar endif " Multiline comments often confuse vim syntax highlighting - these maps -- 2.39.5