fix compatibility with older vim versions
maybe, needs testing
This commit is contained in:
parent
e2800ad7e7
commit
a2ed82913e
@ -1,4 +1,6 @@
|
|||||||
set formatoptions+=j
|
if v:version >= 704
|
||||||
|
set formatoptions+="j"
|
||||||
|
endif
|
||||||
|
|
||||||
set autoindent
|
set autoindent
|
||||||
set smarttab
|
set smarttab
|
||||||
@ -6,7 +8,7 @@ set smarttab
|
|||||||
" round the indent to a multiple o shiftwidth
|
" round the indent to a multiple o shiftwidth
|
||||||
set shiftround
|
set shiftround
|
||||||
|
|
||||||
if has("smartindent")
|
if has('smartindent')
|
||||||
set smartindent
|
set smartindent
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -28,8 +28,10 @@ endif
|
|||||||
|
|
||||||
if has('linebreak')
|
if has('linebreak')
|
||||||
let &showbreak = '↳ '
|
let &showbreak = '↳ '
|
||||||
set breakindent
|
if v:version >=704
|
||||||
set breakindentopt=sbr
|
set breakindent
|
||||||
|
set breakindentopt=sbr
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" show a ruler and show the current command in the bottom right
|
" show a ruler and show the current command in the bottom right
|
||||||
@ -65,8 +67,8 @@ endif
|
|||||||
|
|
||||||
" set via $LANG
|
" set via $LANG
|
||||||
"if has('multi_byte')
|
"if has('multi_byte')
|
||||||
"set encoding=utf-8
|
"set encoding=utf-8
|
||||||
"set termencoding=utf-8
|
"set termencoding=utf-8
|
||||||
"endif
|
"endif
|
||||||
|
|
||||||
" always show a status line
|
" always show a status line
|
||||||
|
Loading…
Reference in New Issue
Block a user