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

larryv at macports.org larryv at macports.org
Wed Jan 16 00:17:44 PST 2013


Revision: 101655
          https://trac.macports.org/changeset/101655
Author:   larryv at macports.org
Date:     2013-01-16 00:17:44 -0800 (Wed, 16 Jan 2013)
Log Message:
-----------
mpvim: Add modeline and reindent.

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

Modified: contrib/mpvim/ftplugin/portfile.vim
===================================================================
--- contrib/mpvim/ftplugin/portfile.vim	2013-01-16 07:02:55 UTC (rev 101654)
+++ contrib/mpvim/ftplugin/portfile.vim	2013-01-16 08:17:44 UTC (rev 101655)
@@ -1,29 +1,30 @@
-" ============================================================================
+" vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+" ======================================================================
 " Vim filetype plugin for portfile
 " Maintainer: Maximilian Nickel <mnick at macports.org>
-" ============================================================================
+" ======================================================================
 
 if exists("b:did_ftplugin")
-	finish
+    finish
 endif
 let b:did_ftplugin = 1
 
 if !exists("g:did_mpftplugin") 
-	function PortfileGetErrors()
-		if !empty(getqflist())
-			exe "copen"
-		end
-	endfunction
+    function PortfileGetErrors()
+        if !empty(getqflist())
+            exe "copen"
+        end
+    endfunction
 
-	function TracPatch(url)
-		let patchfile="$TMPDIR/portfile.patch"
-		let url = substitute(a:url, "/attachment/", "/raw-attachment/", "")
-		let cmd = "!curl --progress-bar -o \"" . patchfile . "\" \"" . url . "\""
-		exe cmd
-		exe "diffpatch " . patchfile
-	endfunction
+    function TracPatch(url)
+        let patchfile="$TMPDIR/portfile.patch"
+        let url = substitute(a:url, "/attachment/", "/raw-attachment/", "")
+        let cmd = "!curl --progress-bar -o \"" . patchfile . "\" \"" . url . "\""
+        exe cmd
+        exe "diffpatch " . patchfile
+    endfunction
 
-	let g:did_mpftplugin = 1
+    let g:did_mpftplugin = 1
 endif
 
 au QuickFixCmdPre make exe "cclose"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130116/42bb08ba/attachment.html>


More information about the macports-changes mailing list