vis

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

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

commit 90a7beedbd4dc52a771691bfb1b4a1a757ebbf8e
parent f46b67c227063d6eef2f5fe01c77c7e2cdecd329
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 14 Dec 2016 14:27:40 +0100

lua: add crontab file type and configure it to save in-place

This should fix isses with `crontab -e` editing.

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

diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua @@ -69,6 +69,10 @@ vis.ftdetect.filetypes = { ext = { "%.cpp$", "%.cxx$", "%.c++$", "%.cc$", "%.hh$", "%.hpp$", "%.hxx$", "%.h++$" }, mime = { "text/x-c++" }, }, + crontab = { + ext = { "^crontab.*$" }, + cmd = { "set savemethod inplace" }, + }, crystal = { ext = { "%.cr$" }, },