From 220873a68f13853303f9f6d5fe2951f1abf445a4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Wed, 28 Oct 2020 14:37:59 +0100 Subject: [PATCH] [FIX][VIM] No side-effects for 'nocompatible' --- vim/.vimrc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index 23cb05a..6109807 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -1,7 +1,9 @@ " Basic configuraion {{{ """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -" Don't try to be compatible with Vi -set nocompatible +" Don't try to be compatible with Vi, but avoid side-effects +if &compatible + set nocompatible +endif " Use UTF-8 set encoding=utf-8 set fileencodings=utf-8