aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2014-05-23 20:03:26 -0400
committerTeddy Wing2014-05-23 20:03:26 -0400
commit8317474a55b055832a877c1c142a30cdf51b8314 (patch)
tree158560f9a4349b1fb740e6cb499e9b7689d87a93
parent5be1676898597db2e9fe770560ba3694983800d1 (diff)
downloaddotvim-8317474a55b055832a877c1c142a30cdf51b8314.tar.bz2
vimrc: disable default ftplugins (working)
Working version of disabled default ftplugins.
-rw-r--r--vimrc12
1 files changed, 8 insertions, 4 deletions
diff --git a/vimrc b/vimrc
index a08a6e1..be42bb7 100644
--- a/vimrc
+++ b/vimrc
@@ -141,6 +141,13 @@
" default behaviours. Note that this doesn't work for some reason and
" I can't figure out why or what to do. Keep searching.
"
+" 2014.05.23:
+" * Get disabling of default ftplugins working. Turns out it shouldn't
+" have been in an autocmd as recommended in
+" http://vim.wikia.com/wiki/Default_filetype#Setting_a_default_filetype
+" and http://marc.info/?l=vim&m=100254210012793&w=2. Instead the
+" variable needed to be set directly.
+"
" Pathogen
@@ -193,10 +200,7 @@ 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
+let b:did_ftplugin = 1
" Enable filetype-specific settings
filetype plugin on