filetype in modeline (was: Re: [101588] trunk/dports/devel/pcre/Portfile)
Clemens Lang
cal at macports.org
Mon Jan 14 05:59:51 PST 2013
On Mon, Jan 14, 2013 at 02:43:18PM +0100, Rainer Müller wrote:
> What I could do about it would be that vim installed from MacPorts
> would recognize Portfile as filetype=tcl by default. This could then
> be overridden by installing mpvim and no filetype= setting would be
> required in Portfiles as long as vim from MacPorts is used.
Another way to make sure Portfiles have filetype set to Portfile despite
the modeline is adding the following line to your .vimrc:
au BufNewFile,BufRead,BufWinEnter Portfile setlocal ft=Portfile
That way you can use mpvim with your Portfiles but still use the
standard modeline.
--
Clemens Lang
More information about the macports-dev
mailing list