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

larryv at macports.org larryv at macports.org
Tue Jan 15 01:36:01 PST 2013


Revision: 101624
          https://trac.macports.org/changeset/101624
Author:   larryv at macports.org
Date:     2013-01-15 01:36:01 -0800 (Tue, 15 Jan 2013)
Log Message:
-----------
mpvim: Ignore Portfile modelines.

This prevents the standard modeline from setting filetype to "tcl" after
mpvim has already set it to "portfile".

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

Modified: contrib/mpvim/ftplugin/portfile.vim
===================================================================
--- contrib/mpvim/ftplugin/portfile.vim	2013-01-15 08:25:49 UTC (rev 101623)
+++ contrib/mpvim/ftplugin/portfile.vim	2013-01-15 09:36:01 UTC (rev 101624)
@@ -29,3 +29,11 @@
 au QuickFixCmdPre make exe "cclose"
 au QuickFixCmdPost make call PortfileGetErrors()
 command! -nargs=1 MPpatch :call TracPatch("<args>") 
+
+" Ignore Portfile modeline
+setlocal nomodeline
+setlocal fileencoding=utf-8
+setlocal expandtab
+setlocal shiftwidth=4
+setlocal tabstop=4
+setlocal softtabstop=4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130115/9148042e/attachment.html>


More information about the macports-changes mailing list