Skip to content

Commit

Permalink
fix: Set horizontal blinking cursor style at VimLeave (#25)
Browse files Browse the repository at this point in the history
The cursor doesn't change back to original style after leaving Vim
on WSL and Windows Terminal.

microsoft/terminal#13420 (comment)

neovim/neovim#4867 (comment)
  • Loading branch information
mdsanima committed Jan 14, 2024
1 parent 03dd0d9 commit 01cc5a0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ set expandtab " Override mode for TAB
set nobackup " Dont make backups
set nowritebackup " Dont save backups

" Keyboard shortcuts setup
" Keyboard shortcuts
map <C-S> :w<CR> " Save file CTRL+S
map <C-Q> :q<CR> " Exit Vim CTRL+S
map <C-Q> :q<CR> " Exit Vim CTRL+Q
" Shows hidden setup
" Shows hidden
set list listchars=tab\ ,extends:→,precedes:←,nbsp:·,trail:·,

" Cursor style
autocmd VimLeave * set guicursor=a:ver1-blinkon1

0 comments on commit 01cc5a0

Please sign in to comment.