Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contrib/vim: match profile files more broadly #5850

Merged
merged 2 commits into from
Jun 18, 2023

Conversation

kmk3
Copy link
Collaborator

@kmk3 kmk3 commented Jun 9, 2023

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.

Cc: @laomaiweng @reinerh @rusty-snake (from #2679 #4319)

@kmk3 kmk3 force-pushed the vim-improve-ftdetect branch 2 times, most recently from 5ec6ecf to 2576ccd Compare June 9, 2023 21:35
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 netblue30#4319.

Relates to netblue30#2679.

Co-authored-by: rusty-snake <[email protected]>
@kmk3 kmk3 force-pushed the vim-improve-ftdetect branch from 2576ccd to 6273865 Compare June 10, 2023 17:18
@kmk3 kmk3 merged commit 930526f into netblue30:master Jun 18, 2023
@kmk3 kmk3 deleted the vim-improve-ftdetect branch June 18, 2023 14:21
kmk3 added a commit that referenced this pull request Jun 19, 2023
@kmk3 kmk3 added enhancement New feature request modif This modifies existing behavior labels Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature request modif This modifies existing behavior
Projects
Status: Done
Status: Done (on RELNOTES)
Development

Successfully merging this pull request may close these issues.

2 participants