Skip feature detection for stuff that always works if Vim9 script does

This commit is contained in:
Danielle McLean 2023-11-04 13:41:00 +11:00
parent 6932873ac0
commit 30a4a89955
Signed by: 00dani
GPG key ID: 52C059C3B22A753E

View file

@ -37,19 +37,16 @@ nnoremap <C-t> :Files<CR>
silent! packadd! editorconfig silent! packadd! editorconfig
if exists('+belloff')
set belloff+=ctrlg set belloff+=ctrlg
endif
set completeopt+=menuone set completeopt+=menuone
set linebreak showbreak= set linebreak showbreak=
set modelines=5 set modelines=5
set relativenumber
set showcmd set showcmd
set wildmode=longest,full set wildmode=longest,full
if has('patch-8.2.4325')
set wildoptions+=pum set wildoptions+=pum
endif
# This is a window-local setting but I like 2 by default. :) # This is a window-local setting but I like 2 by default. :)
set conceallevel=2 set conceallevel=2
@ -59,13 +56,6 @@ set tabstop=2 shiftwidth=2
if exists('+breakindent') if exists('+breakindent')
set breakindent breakindentopt=sbr set breakindent breakindentopt=sbr
endif endif
if exists('+relativenumber')
set relativenumber
else
set number
endif
for dir_name in ['backup', 'swap', 'undo'] for dir_name in ['backup', 'swap', 'undo']
EnsureDir($XDG_STATE_HOME .. '/vim/' .. dir_name) EnsureDir($XDG_STATE_HOME .. '/vim/' .. dir_name)
endfor endfor