Skip to content

Commit

Permalink
Added cursor change normal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Vala committed Feb 14, 2017
1 parent c41d059 commit 78257f4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vi/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,14 @@ set visualbell
set showmatch
" intelligent comments
set comments=sl:/*,mb:\ *,elx:\ */

if has("autocmd")
au VimEnter,InsertLeave * silent execute '!echo -ne "\e[1 q"' | redraw!
au InsertEnter,InsertChange *
\ if v:insertmode == 'i' |
\ silent execute '!echo -ne "\e[3 q"' | redraw! |
\ elseif v:insertmode == 'r' |
\ silent execute '!echo -ne "\e[5 q"' | redraw! |
\ endif
au VimLeave * silent execute '!echo -ne "\e[ q"' | redraw!
endif

0 comments on commit 78257f4

Please sign in to comment.