vim/runtime/ftplugin/mbsync.vim
Pierrick Guillaume 836b87d699
Some checks failed
CodeQL / Analyze (push) Has been cancelled
GitHub CI / linux (arm64, gcc, [nogui], tiny) (push) Has been cancelled
GitHub CI / linux (arm64, gcc, true, [unittests], huge) (push) Has been cancelled
GitHub CI / linux (clang, [asan], huge, 5.1) (push) Has been cancelled
GitHub CI / linux (clang, [nogui], tiny) (push) Has been cancelled
GitHub CI / linux (gcc, [nogui], tiny) (push) Has been cancelled
GitHub CI / linux (gcc, [vimtags], normal) (push) Has been cancelled
GitHub CI / linux (gcc, true, [uchar testgui], huge, dynamic) (push) Has been cancelled
GitHub CI / linux (gcc, true, [unittests], huge) (push) Has been cancelled
GitHub CI / linux (i386, gcc, normal, ./src/shadow) (push) Has been cancelled
GitHub CI / linux (native, clang, [], normal) (push) Has been cancelled
GitHub CI / linux (native, clang, [], tiny) (push) Has been cancelled
GitHub CI / linux (native, clang, true, [], huge, dynamic, stable-abi) (push) Has been cancelled
GitHub CI / linux (native, gcc, [], normal) (push) Has been cancelled
GitHub CI / linux (native, gcc, [], tiny) (push) Has been cancelled
GitHub CI / linux (native, gcc, true, [], huge) (push) Has been cancelled
GitHub CI / macos (huge, macos-13) (push) Has been cancelled
GitHub CI / macos (huge, macos-15) (push) Has been cancelled
GitHub CI / macos (normal, macos-13) (push) Has been cancelled
GitHub CI / macos (normal, macos-15) (push) Has been cancelled
GitHub CI / macos (tiny, macos-13) (push) Has been cancelled
GitHub CI / macos (tiny, macos-15) (push) Has been cancelled
GitHub CI / windows (no, no, x64, HUGE, stable, msvc) (push) Has been cancelled
GitHub CI / windows (no, no, x86, TINY, mingw) (push) Has been cancelled
GitHub CI / windows (no, yes, x64, yes, HUGE, mingw) (push) Has been cancelled
GitHub CI / windows (no, yes, x86, NORMAL, msvc) (push) Has been cancelled
GitHub CI / windows (yes, no, x64, NORMAL, mingw) (push) Has been cancelled
GitHub CI / windows (yes, no, x86, HUGE, msvc) (push) Has been cancelled
GitHub CI / windows (yes, yes, x64, TINY, msvc) (push) Has been cancelled
GitHub CI / windows (yes, yes, x86, yes, HUGE, stable, mingw) (push) Has been cancelled
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>
2025-04-13 18:25:33 +02:00

13 lines
300 B
VimL

" Vim filetype plugin file
" Language: mbsync configuration file
" Maintainer: Pierrick Guillaume <pguillaume@fymyte.com>
" Last Change: 2025 Apr 13
if (exists('b:did_ftplugin'))
finish
endif
let b:did_ftplugin = 1
let b:undo_ftplugin = "setlocal commentstring<"
setlocal commentstring=#\ %s