Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Vim yodl syntax highlighting
- X-seq: zsh-workers 35765
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Vim yodl syntax highlighting
- Date: Fri, 10 Jul 2015 18:14:28 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=ECvrVwzy7oqX1NPF 5lZdq60JQYM=; b=TgZUUJCIdFvIfov1ZuLTJlPykLjqCJFdYsrQWXncj1ELiHNr cr2XnFovOYFlMvhux14UCLfI5PoXim3JS7EYq1Rk7iYKS+3lBwSyj82FmPQx/bPT Fr5gW7Ty3pq5war7Yo/bQlICn1Kxog/LOYVVmi/vTSjoTAa+vXrIMo5PSRk=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=ECvrVwzy7oqX1NP F5lZdq60JQYM=; b=Gu4sx4x9CpuH2S3DIfgH4TB8O6ve6jmr8A8BEykU1lNMv+n 5Bdt4nS8Yccy9rd3d/azEIUSF4fDK7oz7ZK70Xia2zkpN9zxubW7TKrWdpGkpPP5 gxNmNxvMD9b3R/fc8LeU+PRAa8LvT2sLVMvwPZ8C65BtLDd1gHPZXffZZu7g=
- In-reply-to: <150706153158.ZM4229@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150706141233.GG2165@tarsus.local2> <150706153158.ZM4229@torch.brasslantern.com>
Bart Schaefer wrote on Mon, Jul 06, 2015 at 15:31:58 -0700:
> On Jul 6, 2:12pm, Daniel Shahaf wrote:
> }
> } Should this live in the zsh repository? If it's useful to people it
> } should live alongside the code, but if it's just me, I'll throw it on my
> } personal github account.
>
> There are presently
>
> .editorconfig
> Src{,/{Modules,Builtins,Zle}}/.exrc
>
> already in the distribution, so there would be some precedent for putting
> this in Doc/ if there were a reasonably portable way to make it load (or
> not) as required/supported by the local vi-alike.
What's your concern — portability (not causing errors for people who use
other vi-like editors) or usability (automatically enabling the syntax
highlighting)?
Compatibility with vi isn't an issue: these are Vim scripts, vi won't
see them and won't try to execute them in the first place.
Compatibility with Vim builds that don't support syntax highlighting...
I think this can be made to work.
Automatically enabling syntax highlighting: I don't believe Vim has
built-in support for letting a directory tree specify its own syntax
highlighting, so I assume _some_ opt-in step would be needed. We could
make this as frictionless as possible, for example, by putting the file in
Doc/editorconfig/vim/syntax/zyodl.vim
and having a
Doc/editorconfig/vim/filetype.vim
that installs filetype-detection for the zyodl filetype; this way,
people will be able to get syntax highlighting simply by adding
Doc/editorconfig/vim/ to their 'runtimepath' setting (aka, a one-line
~/.vimrc change).
Perhaps there's a better way; I'm open to suggestions from the audience.
> I have an ancient but still functional yodl-mode.el around, somewhere.
Obviously we can't have _that_ in the repository :-)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author