aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/vim/ftdetect
Commit message (Collapse)AuthorAge
* contrib/vim: match profile files more broadlyLibravatar Kelvin M. Klann2023-06-10
| | | | | | | | | | | | | | | | | | | | Currently it only sets the appropriate filetype for files in `/etc/firejail` and `~/.config/firejail`. With this commit, the firejail filetype should also be set when opening `etc/inc/*.inc`, for example, as long as there is a "firejail" directory somewhere before that (such as in `/foo/firejail/bar/etc/inc/*.inc`). Note: At least `*/firejail/*.inc` needs to force the match (by using `set filetype` rather than `setfiletype`), or else the default vim checks take precedence (and the filetype for all files in `etc/inc/*.inc` gets set to `pov`). Fixes #4319. Relates to #2679. Co-authored-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
* contrib/vim: sort paths in ftdetectLibravatar Kelvin M. Klann2023-06-09
|
* vim: use setfiletype command for setting filetypeLibravatar Reiner Herrmann2021-05-29
| | | | | this is a bit nicer, as it does not overwrite the filetype if it already has been set.
* Add vim syntax and ftdetect files (#2679)Libravatar Quentin Minster2019-05-05