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
autocmd VimEnter * silent !echo -ne "\e[3 q" | |
autocmd VimLeave * silent !echo -ne "\e[3 q" | |
autocmd VimLeave * let &t_me="\<Esc>]50;CursorShape=1\x7" | |
autocmd VimLeave * call system('printf "\e[5 q" > $TTY') | |
" To set the cursor back to bar while exiting neovim | |
au VimLeave * set guicursor=a:ver25-blinkon250 | |
" Change the cursor behaviour | |
set guicursor=n-v-c:block,i-ci-ve:ver25,r-cr:hor20,o:hor50 |
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 =~ '^xterm' | |
let &t_SI = "\<Esc>[5 q" " Insert mode | |
let &t_EI = "\<Esc>[0 q" " Normal mode | |
let &t_SR = "\<Esc>[7 q" " Replace mode | |
" 1 or 0 -> blinking block | |
" 3 -> blinking underscore | |
" 5 -> blinking vertical bar | |
" 6 -> solid vertical bar |
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
g_LastCtrlKeyDownTime := 0 | |
g_AbortSendEsc := false | |
g_ControlRepeatDetected := false | |
*CapsLock:: | |
if (g_ControlRepeatDetected) | |
{ | |
return | |
} |