projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75905db
)
[vim] change cursor shape based on mode
author
Amin Bandali
<me@aminb.org>
Thu, 28 May 2015 02:36:18 +0000
(22:36 -0400)
committer
Amin Bandali
<me@aminb.org>
Thu, 28 May 2015 02:36:18 +0000
(22:36 -0400)
vim/.vimrc
patch
|
blob
|
blame
|
history
diff --git
a/vim/.vimrc
b/vim/.vimrc
index
f0c6919
..
30a982c
100644
(file)
--- a/
vim/.vimrc
+++ b/
vim/.vimrc
@@
-224,8
+224,14
@@
let g:indentLine_char = '¦'
"
" change cursor shape based on mode
-let &t_SI = "\<Esc>]50;CursorShape=1\x7"
-let &t_EI = "\<Esc>]50;CursorShape=0\x7"
+if &term =~ "xterm\\|rxvt"
+ " use a solid vertical bar in insert mode
+ let &t_SI .= "\<Esc>[6 q"
+ " use a solid block otherwise
+ let &t_EI .= "\<Esc>[2 q"
+endif
+" eliminite the delay when switching modes
+set ttimeoutlen=0
set pastetoggle=<leader>p