From cbae14f0c53062fd9b35311f392e55df227ed519 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 9 Feb 2022 17:22:53 +0100 Subject: [PATCH] foot.ini: add modeline so vim uses # comments instead of ; Editors like Vim and Kakoune ship filetypes dosini and ini respectively. Both use ";" as comment character, which is used for example by Vim's "gq" command which wraps lines while preserving comment prefixes. foot only accepts # comments. I think it's desirable to stick to a single commenting style (easier to diff configs). Make Vim accept that by adding modeline to use the "conf" filetype, which is for "generic Unix config files". We already have an Emacs modeline at the top, but Vim seems to ignore it. Kakoune doesn't have that filetype, but a patch has been proposed to use # whenever it already occurs in the file, see https://github.com/mawww/kakoune/pull/4537 --- foot.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/foot.ini b/foot.ini index 080d3dcd..072613d0 100644 --- a/foot.ini +++ b/foot.ini @@ -177,3 +177,5 @@ # select-word=BTN_LEFT-2 # select-word-whitespace=Control+BTN_LEFT-2 # select-row=BTN_LEFT-3 + +# vim: ft=conf