aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-02-09 16:22:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-02-09 16:48:44 +0000
commitcbae14f0c53062fd9b35311f392e55df227ed519 (patch)
tree6055654dc3bacc67b8878afdb448b4773c78a1d6
parentMerge branch 'fallback-mouse-cursor' (diff)
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
-rw-r--r--foot.ini2
1 files changed, 2 insertions, 0 deletions
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