Update vimrc
This commit is contained in:
parent
d1268fa913
commit
d70f47cf56
19
home/.vimrc
19
home/.vimrc
@ -3,8 +3,7 @@
|
|||||||
" Arch defaults
|
" Arch defaults
|
||||||
runtime! archlinux.vim
|
runtime! archlinux.vim
|
||||||
|
|
||||||
|
set modeline " enable vim modelines
|
||||||
set modeline
|
|
||||||
set clipboard^=unnamedplus " system clipboard (requires +clipboard)
|
set clipboard^=unnamedplus " system clipboard (requires +clipboard)
|
||||||
set number " enable line numbers
|
set number " enable line numbers
|
||||||
set confirm " ask confirmation for some things, like save before quit, etc.
|
set confirm " ask confirmation for some things, like save before quit, etc.
|
||||||
@ -24,6 +23,22 @@ endif
|
|||||||
syntax enable
|
syntax enable
|
||||||
if has('termguicolors') && $DISPLAY !=? ''
|
if has('termguicolors') && $DISPLAY !=? ''
|
||||||
set termguicolors
|
set termguicolors
|
||||||
|
" fix true colours in some terminals
|
||||||
|
if !has('nvim') && !($TERM =~? 'xterm' || &term =~? 'xterm')
|
||||||
|
let $TERM = 'xterm-256color'
|
||||||
|
let &term = 'xterm-256color'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
" change cursor shape for different modes
|
||||||
|
if !has('nvim') && exists('$TMUX')
|
||||||
|
let &t_SI = "\<Esc>Ptmux;\<Esc>\e[5 q\<Esc>\\"
|
||||||
|
let &t_SR = "\<Esc>Ptmux;\<Esc>\e[4 q\<Esc>\\"
|
||||||
|
let &t_EI = "\<Esc>Ptmux;\<Esc>\e[2 q\<Esc>\\"
|
||||||
|
elseif !has('nvim')
|
||||||
|
let &t_SI = "\e[6 q"
|
||||||
|
let &t_SR = "\e[4 q"
|
||||||
|
let &t_EI = "\e[2 q"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" paste while in insert mode
|
" paste while in insert mode
|
||||||
|
Reference in New Issue
Block a user