aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-23 09:14:39 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-23 09:24:04 +1300
commit62d2a7d8e5b37ea5e207a337579085a4043440ce (patch)
treef227fe23ba4511da07e877d818a4676c6b9021f1
parentMerge branch 'release/v0.19.0' (diff)
downloaddotfiles-62d2a7d8e5b37ea5e207a337579085a4043440ce.tar.gz
dotfiles-62d2a7d8e5b37ea5e207a337579085a4043440ce.zip
Restore 'nocompatible' set to vimrc
Otherwise, the line-continuation in the ~/.vimrc fails if compatibility mode survives the invocation step, for example if the vimrc file is sourced directly with the -u option, or if vim is invoked as "ex".
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index a44c5d2f..5d195427 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1,3 +1,6 @@
+" Don't try to be vi-compatible, even if invoked as ex or with -u specified
+set nocompatible
+
" Use different keys for global and local leaders
if has('eval')
let g:mapleader = '\'