mirror of
https://github.com/mhinz/vim-galore.git
synced 2025-02-24 01:59:28 +08:00
Tips: underline cursor in replace mode
This commit is contained in:
parent
666b9f52c0
commit
58fd7a7691
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user