From 1af398dc4b3ecde0803d8b8073b9747cb64486b3 Mon Sep 17 00:00:00 2001 From: Von Random Date: Mon, 27 Feb 2017 13:21:47 +0300 Subject: [PATCH] more cleanup, compatibility with older vim is back --- vimrc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index b4674a5..08fb7eb 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,6 @@ " various settings -set relativenumber number helplang=en foldmethod=marker history=50 nomodeline -set nobackup backspace=indent,eol,start colorcolumn=80 ttymouse=xterm2 mouse= +set nobackup number nomodeline cursorline backspace=indent,eol,start +set foldmethod=marker ttymouse=xterm2 mouse= " hidden characters set list listchars=tab:\|_,nbsp:x,trail:* " search @@ -19,7 +19,10 @@ set statusline=[%F]\ %R%H%W%M\ %=[%{&fenc}/%{&ff}]\ %y\ [%4l/%L:%3v] " enable case indentation let g:sh_indent_case_labels=1 " version specific settings -if has("nvim") || v:version >= 800 +if v:version >= 703 + set colorcolumn=80 relativenumber +endif +if v:version >= 800 set breakindent set keymap=russian-jcukenwintype iminsert=0 imsearch=0 inoremap @@ -67,7 +70,7 @@ nnoremap w :w " plugins let plugins = expand("$HOME/.vimplugins") -if filereadable(plugins) +if filereadable(plugins) && v:version >= 703 execute 'source ' . fnameescape(plugins) endif