Make sure +linebreak is available before using it
This commit is contained in:
parent
17915a2130
commit
23adaca6b2
1 changed files with 6 additions and 4 deletions
|
@ -39,8 +39,13 @@ silent! packadd! editorconfig
|
||||||
|
|
||||||
set belloff+=ctrlg
|
set belloff+=ctrlg
|
||||||
|
|
||||||
set linebreak showbreak=↩
|
|
||||||
set modelines=5
|
set modelines=5
|
||||||
|
|
||||||
|
if has('linebreak')
|
||||||
|
set breakindent breakindentopt=sbr
|
||||||
|
set linebreak showbreak=↩
|
||||||
|
endif
|
||||||
|
|
||||||
set relativenumber
|
set relativenumber
|
||||||
set showcmd
|
set showcmd
|
||||||
|
|
||||||
|
@ -53,9 +58,6 @@ set conceallevel=2
|
||||||
|
|
||||||
set tabstop=2 shiftwidth=2
|
set tabstop=2 shiftwidth=2
|
||||||
|
|
||||||
if exists('+breakindent')
|
|
||||||
set breakindent breakindentopt=sbr
|
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue