[profiles/base] change vimrc
This commit is contained in:
@@ -15,6 +15,23 @@ inoremap <Down> <Nop>
|
|||||||
inoremap <Left> <Nop>
|
inoremap <Left> <Nop>
|
||||||
inoremap <Right> <Nop>
|
inoremap <Right> <Nop>
|
||||||
|
|
||||||
|
" set cursor shape to block in the normal and command mode,
|
||||||
|
" in the insert mode change shape to vertical bar, and disable
|
||||||
|
" blinking in all modes
|
||||||
|
set guicursor=n-v-c:block
|
||||||
|
set guicursor+=i-ci-ve:ver25
|
||||||
|
set guicursor+=r-cr:hor20
|
||||||
|
set guicursor+=o:hor50
|
||||||
|
set guicursor+=a:blinkon0
|
||||||
|
let &t_EI = "\e[2 q" " solid block
|
||||||
|
let &t_SR = "\e[4 q" " underline shape
|
||||||
|
let &t_SI = "\e[6 q" " vertical bar
|
||||||
|
augroup cursor
|
||||||
|
autocmd!
|
||||||
|
autocmd VimEnter * silent execute '!echo -ne "\e[2 q"' | redraw!
|
||||||
|
autocmd VimLeave * silent execute '!echo -ne "\e[2 q"' | redraw!
|
||||||
|
augroup END
|
||||||
|
|
||||||
" fix delay when sending escape sequences from insert mode
|
" fix delay when sending escape sequences from insert mode
|
||||||
set timeout
|
set timeout
|
||||||
set timeoutlen=1000
|
set timeoutlen=1000
|
||||||
|
|||||||
Reference in New Issue
Block a user