Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2019 19:45:17 +0000
From:      Alexey Dokuchaev <danfe@freebsd.org>
To:        Adam Weinberger <adamw@freebsd.org>
Cc:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   Re: svn commit: r504132 - head/security/vuxml
Message-ID:  <20190615194517.GA74978@FreeBSD.org>
In-Reply-To: <20190615193252.GA60107@FreeBSD.org>
References:  <201906131841.x5DIfuSb069885@repo.freebsd.org> <20190615151247.GA24087@FreeBSD.org> <CAP7rwcjB9moLnEwzUcn0EhfKpF%2BdDvAObY0O8XJOn0V4HXByYA@mail.gmail.com> <20190615184227.GA14704@FreeBSD.org> <CAP7rwcgwGNFjyf7LmDvg6-xpZwbkdyQ2PELQkFfRD-90TahvxQ@mail.gmail.com> <20190615193252.GA60107@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jun 15, 2019 at 07:32:52PM +0000, Alexey Dokuchaev wrote:
> ...
> I personally prefer to :set ts=4 manually, but I understand it can be
> a handy feature for others.  Then again, it should not be hard to show
> users how to enable it if they wish, e.g. by placing a very visible
> comment in the etc/vim/vimrc or via port's pkg-message.
> 
> I don't a strong opinion here, let's hear what others have to say.

Actually, the right way is to enable modelines, but disable :source (with !
modifier for running arbitrary commands) and execute()/assert_fails().  It's
just plain wrong that in order to protect oneself from

  :!uname -a||" vi:fen:fdm=expr:fde=assert_fails("source\!\ \%"):fdl=0:fdt="

one must disable innocent ex:ts=4.  I hope that Vim folks would make it
more granular than just yes or no to all modelines.

./danfe



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190615194517.GA74978>