patch 9.1.1299: filetype: mbsyncrc files are not recognized

Problem:  filetype: mbsyncrc files are not recognized
Solution: detect isyncrc and "*.mbsyncrc" files as mbsync filetype,
          include filetype and syntax plugin (Pierrick Guillaume)

mbsync is a command line application which synchronizes mailboxes;
currently Maildir and IMAP4 mailboxes are supported.
New messages, message deletions and flag changes can be propagated both ways;
the operation set can be selected in a fine-grained manner.

References:
mbsync syntax overview: mbsync manual (isync v1.4.4)
https://isync.sourceforge.io/mbsync.html

Upstream support for the mbsync filetype.
Original plugin: https://github.com/Fymyte/mbsync.vim

closes: #17103

Signed-off-by: Pierrick Guillaume <pguillaume@fymyte.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Pierrick Guillaume
2025-04-13 18:25:33 +02:00
committed by Christian Brabandt
parent 906f306812
commit 836b87d699
8 changed files with 248 additions and 4 deletions

View File

@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" Maintainer: The Vim Project <https://github.com/vim/vim>
" Last Change: 2025 Mar 18
" Last Change: 2025 Apr 13
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" Listen very carefully, I will say this only once
@ -1554,7 +1554,7 @@ au BufNewFile,BufRead *.nb,*.wl setf mma
au BufNewFile,BufRead *.mel setf mel
" mbsync
au BufNewFile,BufRead .mbsyncrc setf conf
au BufNewFile,BufRead *.mbsyncrc,isyncrc setf mbsync
" mcmeta
au BufNewFile,BufRead *.mcmeta setf json