From a2ed82913e158f2826526378004d27261698c467 Mon Sep 17 00:00:00 2001 From: valeth Date: Fri, 3 Jul 2015 02:34:07 +0200 Subject: [PATCH] fix compatibility with older vim versions maybe, needs testing --- core/formatting.vim | 6 ++++-- core/window.vim | 10 ++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/core/formatting.vim b/core/formatting.vim index 2459ee7..c2d416e 100644 --- a/core/formatting.vim +++ b/core/formatting.vim @@ -1,4 +1,6 @@ -set formatoptions+=j +if v:version >= 704 + set formatoptions+="j" +endif set autoindent set smarttab @@ -6,7 +8,7 @@ set smarttab " round the indent to a multiple o shiftwidth set shiftround -if has("smartindent") +if has('smartindent') set smartindent endif diff --git a/core/window.vim b/core/window.vim index 6016d82..ca8d6bb 100644 --- a/core/window.vim +++ b/core/window.vim @@ -28,8 +28,10 @@ endif if has('linebreak') let &showbreak = '↳ ' - set breakindent - set breakindentopt=sbr + if v:version >=704 + set breakindent + set breakindentopt=sbr + endif endif " show a ruler and show the current command in the bottom right @@ -65,8 +67,8 @@ endif " set via $LANG "if has('multi_byte') - "set encoding=utf-8 - "set termencoding=utf-8 +"set encoding=utf-8 +"set termencoding=utf-8 "endif " always show a status line