From 133068198312283ea18423102cb5cd85574247f6 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Sun, 8 Aug 2010 20:51:53 -0500 Subject: [PATCH] .vimrc: Add version checking for vim 7.0+ features --- .vimrc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index 56b49a8..fff728f 100644 --- a/.vimrc +++ b/.vimrc @@ -11,7 +11,6 @@ set iskeyword+=_,$,@,%,#,- " none word dividers set viminfo='1000,f1,:100,@100,/20 set modeline " make sure modeline support is enabled set autoread " reload files (no local changes only) -set tabpagemax=50 " open 50 tabs max " --------------------------------------------------------------------------- " Colors / Theme @@ -110,6 +109,9 @@ set virtualedit=block " allow virtual edit in visual block .. " Tabs " ---------------------------------------------------------------------------- +if version >= 700 + set tabpagemax=50 " open 50 tabs max +endif " ---------------------------------------------------------------------------- " Mappings @@ -120,10 +122,12 @@ nnoremap :set invpaste paste? set pastetoggle= set showmode -" /- to navigation between buffers -set switchbuf=usetab -nnoremap :sbnext -nnoremap :sbprevious +"" /- to navigation between buffers +if version >= 700 + set switchbuf=usetab + nnoremap :sbnext + nnoremap :sbprevious +endif "" quickfix mappings "map :cn -- 2.45.2