Created
November 17, 2021 08:38
-
-
Save hardselius/10a6d9e4539d26b768d2187a384b3ac4 to your computer and use it in GitHub Desktop.
Different cursor for different mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if &term =~? 'rxvt' || &term =~? 'xterm' || &term =~ 'st-' | |
" 1 or 0 -> blinking block | |
" 2 -> solid block | |
" 3 -> blinking underscore | |
" 4 -> solid underscore | |
" Recent versions of xterm (282 or above) also support | |
" 5 -> blinking vertical bar | |
" 6 -> solid vertical bar | |
" Insert Mode | |
let &t_SI .= "\<Esc>[5 q" | |
" Normal Mode | |
let &t_EI .= "\<Esc>[2 q" | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment