From 7bd5059a38a9b7159c555959380c1b99a97ef64a Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Wed, 7 Feb 2024 22:30:38 +0000 Subject: [PATCH] vimrc: Fix compatibility with vim < 7.3 --- vim/vimrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index b0fc247..25e6b60 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -18,7 +18,9 @@ else source $VIMRUNTIME/vimrc_example.vim endif set backup -set undofile +if v:version >= 703 + set undofile +end set hlsearch set t_Co=256 @@ -27,7 +29,9 @@ let g:inkpot_black_background=1 colorscheme inkpot set cinoptions=+4,(4,u4,w4 -set colorcolumn=81 +if v:version >= 703 + set colorcolumn=81 +end highlight ColorColumn ctermbg=235 let c_space_errors=1 set ignorecase