vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit dd90463fa07d7d9b3128336f136903bb6966219b
parent 0fb3088b544c6ce92c7d5ba962aed6842b291ed6
Author: Matěj Cepl <mcepl@cepl.eu>
Date:   Mon, 24 Jul 2023 17:07:57 +0200

Introduce new `mail` file type.

Aside from the possibility of future syntax highlighting (similar to
https://github.com/vim/vim/blob/master/runtime/syntax/mail.vim in Vim).

After objections on the list, I have decided not to include the conversion
and user has to introduce it in their visrc.lua:

	vis.ftdetect.filetypes.mail.cmd = { "x/\r/ d" }

Diffstat:
Mlua/plugins/filetype.lua | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua @@ -123,6 +123,9 @@ vis.ftdetect.filetypes = { elm = { ext = { "%.elm$" }, }, + mail = { + ext = { "%.eml$" }, + }, erlang = { ext = { "%.erl$", "%.hrl$" }, },