diff options
author | 2021-05-29 12:36:45 +0200 | |
---|---|---|
committer | 2021-05-29 12:53:50 +0200 | |
commit | 91cc7e2688a70c71d741fe7818a20757c4112c54 (patch) | |
tree | 758b23293ad40a19470d406bb7abb08a3333ec9c | |
parent | vim: use type instead of constant for seccomp action (diff) | |
download | firejail-91cc7e2688a70c71d741fe7818a20757c4112c54.tar.gz firejail-91cc7e2688a70c71d741fe7818a20757c4112c54.tar.zst firejail-91cc7e2688a70c71d741fe7818a20757c4112c54.zip |
vim: use setfiletype command for setting filetype
this is a bit nicer, as it does not overwrite the filetype if it
already has been set.
-rw-r--r-- | contrib/vim/ftdetect/firejail.vim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/contrib/vim/ftdetect/firejail.vim b/contrib/vim/ftdetect/firejail.vim index a8ba5cd75..2edc741da 100644 --- a/contrib/vim/ftdetect/firejail.vim +++ b/contrib/vim/ftdetect/firejail.vim | |||
@@ -1,6 +1,6 @@ | |||
1 | autocmd BufNewFile,BufRead /etc/firejail/*.profile set filetype=firejail | 1 | autocmd BufNewFile,BufRead /etc/firejail/*.profile setfiletype firejail |
2 | autocmd BufNewFile,BufRead /etc/firejail/*.local set filetype=firejail | 2 | autocmd BufNewFile,BufRead /etc/firejail/*.local setfiletype firejail |
3 | autocmd BufNewFile,BufRead /etc/firejail/*.inc set filetype=firejail | 3 | autocmd BufNewFile,BufRead /etc/firejail/*.inc setfiletype firejail |
4 | autocmd BufNewFile,BufRead ~/.config/firejail/*.profile set filetype=firejail | 4 | autocmd BufNewFile,BufRead ~/.config/firejail/*.profile setfiletype firejail |
5 | autocmd BufNewFile,BufRead ~/.config/firejail/*.local set filetype=firejail | 5 | autocmd BufNewFile,BufRead ~/.config/firejail/*.local setfiletype firejail |
6 | autocmd BufNewFile,BufRead ~/.config/firejail/*.inc set filetype=firejail | 6 | autocmd BufNewFile,BufRead ~/.config/firejail/*.inc setfiletype firejail |