Make insert mode use pipe cursor
This commit is contained in:
parent
d00a19e59a
commit
1d127cd49b
1 changed files with 16 additions and 0 deletions
16
.vimrc
16
.vimrc
|
@ -70,6 +70,22 @@ set showcmd
|
|||
" Make vim default to the plus register (system clipboard) when yanking etc.
|
||||
"set clipboard=unnamedplus
|
||||
|
||||
" Make the cursor change in insert mode
|
||||
"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[5 q"
|
||||
let &t_EI = "\e[1 q"
|
||||
|
||||
" optional reset cursor on start:
|
||||
augroup myCmds
|
||||
au!
|
||||
autocmd VimEnter * silent !echo -ne "\e[2 q"
|
||||
augroup END
|
||||
|
||||
" Plugin Options {{{1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue