mirror of
				https://github.com/mhinz/vim-galore.git
				synced 2025-11-04 11:55:35 +08:00 
			
		
		
		
	Tips: underline cursor in replace mode
This commit is contained in:
		@@ -1149,16 +1149,18 @@ command! Smaller :let &guifont = substitute(&guifont, '\d\+$', '\=submatch(0)-1'
 | 
			
		||||
 | 
			
		||||
#### Change cursor style in insert mode
 | 
			
		||||
 | 
			
		||||
I like to use a block cursor in normal mode and i-beam cursor in insert mode.
 | 
			
		||||
Also when using tmux in the middle.
 | 
			
		||||
I like to use a block cursor in normal mode, i-beam cursor in insert mode, and
 | 
			
		||||
underline cursor in replace mode. Also when using tmux in the middle.
 | 
			
		||||
 | 
			
		||||
```viml
 | 
			
		||||
if empty($TMUX)
 | 
			
		||||
  let &t_SI = "\<Esc>]50;CursorShape=1\x7"
 | 
			
		||||
  let &t_EI = "\<Esc>]50;CursorShape=0\x7"
 | 
			
		||||
  let &t_SR = "\<Esc>]50;CursorShape=2\x7"
 | 
			
		||||
else
 | 
			
		||||
  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_SR = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=2\x7\<Esc>\\"
 | 
			
		||||
endif
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user