Update vimrc

This commit is contained in:
natemaia 2018-06-10 18:30:50 -07:00
parent d1268fa913
commit d70f47cf56

View File

@ -3,8 +3,7 @@
" Arch defaults
runtime! archlinux.vim
set modeline
set modeline " enable vim modelines
set clipboard^=unnamedplus " system clipboard (requires +clipboard)
set number " enable line numbers
set confirm " ask confirmation for some things, like save before quit, etc.
@ -24,6 +23,22 @@ endif
syntax enable
if has('termguicolors') && $DISPLAY !=? ''
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
" paste while in insert mode