You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.5 KiB
VimL
80 lines
1.5 KiB
VimL
1 year ago
|
if (has("nvim"))
|
||
|
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
|
||
|
endif
|
||
|
|
||
|
if (has("termguicolors"))
|
||
|
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
|
||
|
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
|
||
|
set termguicolors
|
||
|
endif
|
||
|
|
||
4 years ago
|
if has('syntax') && !exists('g:syntax_on')
|
||
|
syntax enable
|
||
|
endif
|
||
4 years ago
|
|
||
4 years ago
|
if has('autocmd')
|
||
|
filetype plugin on
|
||
|
filetype indent on
|
||
|
endif
|
||
|
|
||
|
if !has('nvim') && &ttimeoutlen == -1
|
||
|
set ttimeout
|
||
|
set ttimeoutlen=100
|
||
|
endif
|
||
|
|
||
1 year ago
|
if has('path_extra')
|
||
|
setglobal tags-=./tags tags-=./tags; tags^=./tags;
|
||
|
endif
|
||
|
|
||
4 years ago
|
" Use <C-L> to clear the highlighting of :set hlsearch.
|
||
|
if maparg('<C-L>', 'n') ==# ''
|
||
|
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
||
|
endif
|
||
|
|
||
1 year ago
|
if !empty(&viminfo)
|
||
|
set viminfo^=!
|
||
|
endif
|
||
4 years ago
|
|
||
1 year ago
|
if empty(mapcheck('<C-U>', 'i'))
|
||
|
inoremap <C-U> <C-G>u<C-U>
|
||
|
endif
|
||
|
|
||
|
if empty(mapcheck('<C-W>', 'i'))
|
||
|
inoremap <C-W> <C-G>u<C-W>
|
||
|
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
|
||
4 years ago
|
|
||
|
if !&scrolloff
|
||
|
set scrolloff=1
|
||
|
endif
|
||
1 year ago
|
|
||
4 years ago
|
if !&sidescrolloff
|
||
|
set sidescrolloff=5
|
||
|
endif
|
||
|
|
||
|
if &encoding ==# 'latin1' && has('gui_running')
|
||
|
set encoding=utf-8
|
||
|
endif
|
||
|
|
||
|
if &listchars ==# 'eol:$'
|
||
4 years ago
|
set listchars=tab:\⇥\ ,trail:…,extends:→,precedes:←,nbsp:+
|
||
4 years ago
|
endif
|
||
|
|
||
|
if &history < 10000
|
||
|
set history=10000
|
||
|
endif
|
||
1 year ago
|
|
||
4 years ago
|
if &tabpagemax < 50
|
||
|
set tabpagemax=50
|
||
|
endif
|