diff options
author | Amin Bandali <me@aminb.org> | 2015-05-27 22:36:18 -0400 |
---|---|---|
committer | Amin Bandali <me@aminb.org> | 2015-05-27 22:36:18 -0400 |
commit | 58b04a471e1a534709b43e60fe3c3519290218e2 (patch) | |
tree | 8920412d75ec4aee4ae59b16a059cbdbc5aa3521 | |
parent | 75905dbc2071e161e42f0240a4fc7a9e996b5d43 (diff) | |
download | configs-58b04a471e1a534709b43e60fe3c3519290218e2.tar.gz configs-58b04a471e1a534709b43e60fe3c3519290218e2.tar.xz configs-58b04a471e1a534709b43e60fe3c3519290218e2.zip |
[vim] change cursor shape based on mode
Diffstat (limited to '')
-rw-r--r-- | vim/.vimrc | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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 |