summaryrefslogtreecommitdiff
path: root/runtime/defaults.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/defaults.vim')
-rw-r--r--runtime/defaults.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/defaults.vim b/runtime/defaults.vim
index 43ff1e0fb..69668f1c0 100644
--- a/runtime/defaults.vim
+++ b/runtime/defaults.vim
@@ -1,7 +1,7 @@
" The default vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
-" Last change: 2016 Sep 02
+" Last change: 2017 Mar 08
"
" This is loaded if no vimrc file was found.
" Except when Vim is run with "-u NONE" or "-C".
@@ -21,7 +21,10 @@ endif
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
-set nocompatible
+" Avoid side effects when it was already reset.
+if &compatible
+ set nocompatible
+endif
" Allow backspacing over everything in insert mode.
set backspace=indent,eol,start