From: Amin Bandali Date: Thu, 28 May 2015 02:36:18 +0000 (-0400) Subject: [vim] change cursor shape based on mode X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/58b04a471e1a534709b43e60fe3c3519290218e2?ds=inline [vim] change cursor shape based on mode --- diff --git a/vim/.vimrc b/vim/.vimrc index f0c6919..30a982c 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -224,8 +224,14 @@ let g:indentLine_char = '¦' " " change cursor shape based on mode -let &t_SI = "\]50;CursorShape=1\x7" -let &t_EI = "\]50;CursorShape=0\x7" +if &term =~ "xterm\\|rxvt" + " use a solid vertical bar in insert mode + let &t_SI .= "\[6 q" + " use a solid block otherwise + let &t_EI .= "\[2 q" +endif +" eliminite the delay when switching modes +set ttimeoutlen=0 set pastetoggle=p