[58758] contrib/mpvim/ftplugin/portfile.vim

mnick at macports.org mnick at macports.org
Sun Oct 4 14:29:52 PDT 2009


Revision: 58758
          http://trac.macports.org/changeset/58758
Author:   mnick at macports.org
Date:     2009-10-04 14:29:50 -0700 (Sun, 04 Oct 2009)
Log Message:
-----------
check if ftplugin functions are already defined

Modified Paths:
--------------
    contrib/mpvim/ftplugin/portfile.vim

Modified: contrib/mpvim/ftplugin/portfile.vim
===================================================================
--- contrib/mpvim/ftplugin/portfile.vim	2009-10-04 21:22:43 UTC (rev 58757)
+++ contrib/mpvim/ftplugin/portfile.vim	2009-10-04 21:29:50 UTC (rev 58758)
@@ -1,16 +1,19 @@
 " Vim filetype plugin for portfile
 " Author: Maximilian Nickel <mnick at macports.org>
 
-if exists("b:did_ftplugin") 
+if exists("b:did_ftplugin")
 	finish
 endif
 let b:did_ftplugin = 1
 
-function PortfileGetErrors()
-	if !empty(getqflist())
-		exe "copen"
-	end
-endfunction
+if exists("g:did_macportsplugin") 
+	function PortfileGetErrors()
+		if !empty(getqflist())
+			exe "copen"
+		end
+	endfunction
+endif
+let g:did_macportsplugin = 1
 
 au QuickFixCmdPre make exe "cclose"
 au QuickFixCmdPost make call PortfileGetErrors()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091004/bd77ffed/attachment.html>


More information about the macports-changes mailing list