From 5c72f7817c6dcebd367218c5c4502f0a182d71df Mon Sep 17 00:00:00 2001
From: Romain Boman <r.boman@uliege.be>
Date: Mon, 6 Apr 2020 17:31:35 +0200
Subject: [PATCH] fix fabulous compatibility

---
 vim/.vimrc | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/vim/.vimrc b/vim/.vimrc
index c8fdda2..22fe6d6 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -84,10 +84,12 @@ set nowrap                  " no wrapping of long lines
 
 set noswapfile
 set nobackup                " because undodir/undofile
-set undodir=~/.vim/undodir
-set undofile
-if !isdirectory(&undodir)
-    call mkdir(&undodir, "p")
+if has('persistent_undo')
+    set undodir=~/.vim/undodir
+    set undofile
+    if !isdirectory(&undodir)
+        call mkdir(&undodir, "p")
+    endif
 endif
 
 set hlsearch                " highlight search terms
@@ -118,9 +120,10 @@ else
 endif
 
 
-
 set cursorline              " highlight the line of the cursor
-set colorcolumn=80          " highlight column #80
+if exists("&colorcolumn")
+    set colorcolumn=80          " highlight column #80
+endif
 highlight CorlorColumn ctermbg=0 guibg=lightgrey
 " highlight text beyond column 80
 highlight OverLength ctermbg=71 ctermfg=white guibg=#592929
-- 
GitLab