From ba43c75e44251df28df4cf67f9842fc026b47674 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 13 Nov 2017 00:50:33 +1300 Subject: Pre-emptively disable core Vim plugins in config Most of them, anyway. A couple of them are sane and useful. --- vim/config/plugin.vim | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/vim/config/plugin.vim b/vim/config/plugin.vim index 407f0880..934424ed 100644 --- a/vim/config/plugin.vim +++ b/vim/config/plugin.vim @@ -2,19 +2,32 @@ " is one; extends % to match more than it does by default silent! runtime macros/matchit.vim -" netrw plugin configuration +" Disable most core plugin stuff that I don't use if has('eval') - " Don't show the preamble banner - let g:netrw_banner = 0 + " 2html.vim is often useful, so keep that + " matchparen.vim I use constantly - " Perform file transfers silently - let g:netrw_silent = 1 + " I handle versioning plugins manually, and have never used .vba + let g:loaded_getscriptPlugin = 'skipped' + let g:loaded_vimballPlugin = 'skipped' - " Use a tree-style file listing - let g:netrw_liststyle = 3 + " This is what grep, sed, Awk, and Perl are for + let g:loaded_logiPat = 'skipped' - " Don't list the current directory shortcut, and don't show tags files - let g:netrw_list_hide = '^\.$,^tags$' + " ^Z, my dudes + let g:loaded_netrwPlugin = 'skipped' + + " Vim servers? What is this, Emacs? + let g:loaded_rrhelper = 'skipped' + + " System dictionaries plus custom per-machine spell files are fine + let g:loaded_spellfile_plugin = 'skipped' + + " 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 = 'skipped' + let g:loaded_tarPlugin = 'skipped' + let g:loaded_zipPlugin = 'skipped' endif -- cgit v1.2.3