diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-02 21:46:35 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-06-02 21:46:35 +1200 |
commit | 8b9887ad91f4374069afe387acc5df1c90f23c0c (patch) | |
tree | 761f66311f826ef78fa3b488cc79041389d26800 /vim/config/dist.vim | |
parent | Rebuild help tags after installing bundle (diff) | |
download | dotfiles-8b9887ad91f4374069afe387acc5df1c90f23c0c.tar.gz dotfiles-8b9887ad91f4374069afe387acc5df1c90f23c0c.zip |
Refactor Vim distribution plugin/macro handling
Intelligently choose how to load matchit.vim, and clean up the
short-circuit variables for the unwanted distribution plugins in an
"after" plugin script.
Diffstat (limited to 'vim/config/dist.vim')
-rw-r--r-- | vim/config/dist.vim | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/vim/config/dist.vim b/vim/config/dist.vim new file mode 100644 index 00000000..0a20be48 --- /dev/null +++ b/vim/config/dist.vim @@ -0,0 +1,30 @@ +" Disable most core plugin stuff that I don't use; after/plugin/dist.vim +" clears these variables later +if has('eval') + + " 2html.vim is often useful, so keep that + " matchparen.vim I use constantly + + " I handle versioning plugins manually, and have never used .vba + let g:loaded_getscriptPlugin = 1 + let g:loaded_vimballPlugin = 1 + + " This is what grep, sed, Awk, and Perl are for + let g:loaded_logiPat = 1 + + " ^Z, my dudes + let g:loaded_netrwPlugin = 1 + + " Vim servers? What is this, Emacs? + let g:loaded_rrhelper = 1 + + " System dictionaries plus custom per-machine spell files are fine + let g:loaded_spellfile_plugin = 1 + + " If I want to read a file or a file archived within it I'll decompress or + " unarchive it myself; a text editor should not do this + let g:loaded_gzip = 1 + let g:loaded_tarPlugin = 1 + let g:loaded_zipPlugin = 1 + +endif |