if (has("nvim")) let $NVIM_TUI_ENABLE_TRUE_COLOR=1 endif if (has("termguicolors")) let &t_8f = "\[38;2;%lu;%lu;%lum" let &t_8b = "\[48;2;%lu;%lu;%lum" set termguicolors endif if has('syntax') && !exists('g:syntax_on') syntax enable endif if has('autocmd') filetype plugin on filetype indent on endif if !has('nvim') && &ttimeoutlen == -1 set ttimeout set ttimeoutlen=100 endif if has('path_extra') setglobal tags-=./tags tags-=./tags; tags^=./tags; endif " Use to clear the highlighting of :set hlsearch. if maparg('', 'n') ==# '' nnoremap :nohlsearch=has('diff')?'diffupdate':'' endif if !empty(&viminfo) set viminfo^=! endif if empty(mapcheck('', 'i')) inoremap u endif if empty(mapcheck('', 'i')) inoremap u endif if v:version > 703 || v:version == 703 && has("patch541") set formatoptions+=j " Delete comment character when joining commented lines endif " Allow color schemes to do bright colors without forcing bold. if &t_Co == 8 && $TERM !~# '^Eterm' set t_Co=16 else set t_Co=256 endif if !&scrolloff set scrolloff=1 endif if !&sidescrolloff set sidescrolloff=5 endif if &encoding ==# 'latin1' && has('gui_running') set encoding=utf-8 endif if &listchars ==# 'eol:$' set listchars=tab:\⇥\ ,trail:…,extends:→,precedes:←,nbsp:+ endif if &history < 10000 set history=10000 endif if &tabpagemax < 50 set tabpagemax=50 endif