diff options
| author | Johannes Altmanninger <aclopte@gmail.com> | 2022-02-09 16:22:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-02-09 16:48:44 +0000 |
| commit | cbae14f0c53062fd9b35311f392e55df227ed519 (patch) | |
| tree | 6055654dc3bacc67b8878afdb448b4773c78a1d6 /doc | |
| parent | Merge 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
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions
