[Assorted-commits] SF.net SVN: assorted: [268] configs/trunk/src/vim/plugin/_yang.vim
Brought to you by:
yangzhang
|
From: <yan...@us...> - 2008-01-20 19:24:54
|
Revision: 268
http://assorted.svn.sourceforge.net/assorted/?rev=268&view=rev
Author: yangzhang
Date: 2008-01-20 11:24:54 -0800 (Sun, 20 Jan 2008)
Log Message:
-----------
fixed filetype detection
Modified Paths:
--------------
configs/trunk/src/vim/plugin/_yang.vim
Modified: configs/trunk/src/vim/plugin/_yang.vim
===================================================================
--- configs/trunk/src/vim/plugin/_yang.vim 2008-01-20 18:26:49 UTC (rev 267)
+++ configs/trunk/src/vim/plugin/_yang.vim 2008-01-20 19:24:54 UTC (rev 268)
@@ -126,10 +126,17 @@
set winaltkeys=no
set wrapscan " TODO ???
+" Enable plugins and indentation based on filetypes. We must first deactivate
+" filetype detection because "filetype * on" is the instant when vim crawls
+" the indent/ and ftplugin/ directories in the current rtp. However, if this
+" is already on, then the command will do nothing. In fact, this is already
+" likely to be on (due to default or platform-specific configurations).
+" Hence, we need to turn it off to force vim to see the files in our current
+" rtp.
+filetype off
+filetype plugin indent on
" AUTOCOMMANDS ----------------------------------------------------------------
-" makes this enable plugins and indentation based on file types
-filetype plugin indent on
" binaries
augroup Binary
au!
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|