mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-11-22 01:12:19 +00:00
vim: change cursor shape when switching modes
This commit is contained in:
parent
ae804e9387
commit
1cdbe8cf36
1 changed files with 14 additions and 0 deletions
14
vim/.vimrc
14
vim/.vimrc
|
@ -44,6 +44,20 @@ else
|
|||
map <C-l> <C-w>l
|
||||
endif
|
||||
|
||||
" Use a line cursor within insert mode and a block cursor everywhere else.
|
||||
"
|
||||
" Reference chart of values:
|
||||
" Ps = 0 -> blinking block.
|
||||
" Ps = 1 -> blinking block (default).
|
||||
" Ps = 2 -> steady block.
|
||||
" Ps = 3 -> blinking underline.
|
||||
" Ps = 4 -> steady underline.
|
||||
" Ps = 5 -> blinking bar (xterm).
|
||||
" Ps = 6 -> steady bar (xterm).
|
||||
let &t_SI = "\e[6 q"
|
||||
let &t_EI = "\e[2 q"
|
||||
|
||||
|
||||
" coding preferences
|
||||
filetype off
|
||||
filetype plugin indent on
|
||||
|
|
Loading…
Reference in a new issue