aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-05-23 19:58:27 -0400
committerTeddy Wing2014-05-23 19:58:27 -0400
commit5be1676898597db2e9fe770560ba3694983800d1 (patch)
tree528c5e57e7e2b23d1eebd44caef50ba793460dfb /vimrc
parent46ee5b036077dbe33b495efd8fb5a32959f650fa (diff)
downloaddotvim-5be1676898597db2e9fe770560ba3694983800d1.tar.bz2
vimrc: disable default ftplugins
Only run my ftplugins, not the ones that vim provides. NOTE: this doesn't work. Figure out why.
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc9
1 files changed, 9 insertions, 0 deletions
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