Skip to content

Instantly share code, notes, and snippets.

@hardselius
Created November 17, 2021 08:38
Show Gist options
  • Save hardselius/10a6d9e4539d26b768d2187a384b3ac4 to your computer and use it in GitHub Desktop.
Save hardselius/10a6d9e4539d26b768d2187a384b3ac4 to your computer and use it in GitHub Desktop.
Different cursor for different mode
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