From 5be1676898597db2e9fe770560ba3694983800d1 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 23 May 2014 19:58:27 -0400 Subject: vimrc: disable default ftplugins Only run my ftplugins, not the ones that vim provides. NOTE: this doesn't work. Figure out why. --- vimrc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 6b69099..a08a6e1 100644 --- a/vimrc +++ b/vimrc @@ -137,6 +137,9 @@ " * Move JSON filetype detection from vimrc to ftdetect/json.vim. Now " that I know that such things exist, it's nice to keep things " organised. +" * Add autocmd to disable default ftplugins. Don't like a lot of the +" default behaviours. Note that this doesn't work for some reason and +" I can't figure out why or what to do. Keep searching. " @@ -189,6 +192,12 @@ set backupdir=~/.vim/backup/backup// set directory=~/.vim/backup/swap// set undodir=~/.vim/backup/undo// +" Disable all default ftplugins +augroup disable_default_ftplugins + autocmd! + autocmd BufEnter * let b:did_ftplugin = 1 +augroup END + " Enable filetype-specific settings filetype plugin on -- cgit v1.2.3