Tips: underline cursor in replace mode

This commit is contained in:
Marco Hinz 2016-01-18 12:25:30 +01:00
parent 666b9f52c0
commit 58fd7a7691

View File

@ -1149,16 +1149,18 @@ command! Smaller :let &guifont = substitute(&guifont, '\d\+$', '\=submatch(0)-1'
#### Change cursor style in insert mode #### Change cursor style in insert mode
I like to use a block cursor in normal mode and i-beam cursor in insert mode. I like to use a block cursor in normal mode, i-beam cursor in insert mode, and
Also when using tmux in the middle. underline cursor in replace mode. Also when using tmux in the middle.
```viml ```viml
if empty($TMUX) if empty($TMUX)
let &t_SI = "\<Esc>]50;CursorShape=1\x7" let &t_SI = "\<Esc>]50;CursorShape=1\x7"
let &t_EI = "\<Esc>]50;CursorShape=0\x7" let &t_EI = "\<Esc>]50;CursorShape=0\x7"
let &t_SR = "\<Esc>]50;CursorShape=2\x7"
else else
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\"
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\"
let &t_SR = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=2\x7\<Esc>\\"
endif endif
``` ```