aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc.stub
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-22 00:13:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-22 00:13:37 +1200
commitbd0f6a19426fe934f6c90d4a73fa657774d2cc1f (patch)
tree1b3af4af4d86c03748755a4404eacb2df398d48a /vim/vimrc.stub
parentSpin out select_old_files.vim into distro (diff)
downloaddotfiles-bd0f6a19426fe934f6c90d4a73fa657774d2cc1f.tar.gz
dotfiles-bd0f6a19426fe934f6c90d4a73fa657774d2cc1f.zip
Revert to vimrc filename
Diffstat (limited to 'vim/vimrc.stub')
-rw-r--r--vim/vimrc.stub26
1 files changed, 26 insertions, 0 deletions
diff --git a/vim/vimrc.stub b/vim/vimrc.stub
new file mode 100644
index 00000000..dfadac92
--- /dev/null
+++ b/vim/vimrc.stub
@@ -0,0 +1,26 @@
+" We have a big, important decision to make here.
+"
+" Check that we're not running in 'compatible' mode, nor that the environment
+" calls for the same, and that we're running Vim v7.0.0 or newer. If it's all
+" clear, we can load the main vimrc file from ~/.vim/vimrc to use Vim in all
+" of its incompatible glory, and then stop sourcing the rest of this file.
+"
+if !&compatible && !exists('$POSIXLY_CORRECT') && v:version >= 700
+ runtime vimrc
+ finish
+endif
+
+" If we got this far, it means we're running a tiny, 'compatible', and/or
+" ancient version of Vim.
+"
+" So, strip out our user runtime directories from 'runtimepath', force
+" 'compatible' on, source your trusty ~/.exrc, put on your dubbed cassette
+" copy of Kraftwerk's 'Computerwelt', and start using Sun OS 4.x vi v3.7, from
+" July 1985.
+"
+" Don't grizzle, just use it. It's good for you, like raisin bran.
+"
+set runtimepath-=~/.vim
+set runtimepath-=~/.vim/after
+set compatible
+silent! source ~/.exrc