patch 9.1.0322: filetype: some mail tools not recognized
Problem: filetype: some mail tools not recognized
Solution: Detect '.mbsncrc' as conf, '.msmtprc' as msmtp
and '.notmuch-config' as ini filetype
(Shane-XB-Qian)
closes: #14533
Signed-off-by: shane.xb.qian <shane.qian@foxmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
49528da8a6
commit
a7a9a476cf
@ -1396,6 +1396,9 @@ au BufNewFile,BufRead *.nb setf mma
|
|||||||
" Maya Extension Language
|
" Maya Extension Language
|
||||||
au BufNewFile,BufRead *.mel setf mel
|
au BufNewFile,BufRead *.mel setf mel
|
||||||
|
|
||||||
|
" mbsync
|
||||||
|
au BufNewFile,BufRead .mbsyncrc setf conf
|
||||||
|
|
||||||
" Mercurial (hg) commit file
|
" Mercurial (hg) commit file
|
||||||
au BufNewFile,BufRead hg-editor-*.txt setf hgcommit
|
au BufNewFile,BufRead hg-editor-*.txt setf hgcommit
|
||||||
|
|
||||||
@ -1428,6 +1431,9 @@ au BufNewFile,BufRead *.mix,*.mixal setf mix
|
|||||||
" MMIX or VMS makefile
|
" MMIX or VMS makefile
|
||||||
au BufNewFile,BufRead *.mms call dist#ft#FTmms()
|
au BufNewFile,BufRead *.mms call dist#ft#FTmms()
|
||||||
|
|
||||||
|
" msmtp
|
||||||
|
au BufNewFile,BufRead .msmtprc setf msmtp
|
||||||
|
|
||||||
" Symbian meta-makefile definition (MMP)
|
" Symbian meta-makefile definition (MMP)
|
||||||
au BufNewFile,BufRead *.mmp setf mmp
|
au BufNewFile,BufRead *.mmp setf mmp
|
||||||
|
|
||||||
@ -1555,6 +1561,9 @@ au BufNewFile,BufRead *.mm call dist#ft#FTmm()
|
|||||||
" Not Quite C
|
" Not Quite C
|
||||||
au BufNewFile,BufRead *.nqc setf nqc
|
au BufNewFile,BufRead *.nqc setf nqc
|
||||||
|
|
||||||
|
" notmuch
|
||||||
|
au BufNewFile,BufRead .notmuch-config setf dosini
|
||||||
|
|
||||||
" NSE - Nmap Script Engine - uses Lua syntax
|
" NSE - Nmap Script Engine - uses Lua syntax
|
||||||
au BufNewFile,BufRead *.nse setf lua
|
au BufNewFile,BufRead *.nse setf lua
|
||||||
|
|
||||||
@ -3117,3 +3126,5 @@ endfunc
|
|||||||
" Restore 'cpoptions'
|
" Restore 'cpoptions'
|
||||||
let &cpo = s:cpo_save
|
let &cpo = s:cpo_save
|
||||||
unlet s:cpo_save
|
unlet s:cpo_save
|
||||||
|
|
||||||
|
" vim: ts=8
|
||||||
|
|||||||
@ -162,7 +162,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
cobol: ['file.cbl', 'file.cob', 'file.lib'],
|
cobol: ['file.cbl', 'file.cob', 'file.lib'],
|
||||||
coco: ['file.atg'],
|
coco: ['file.atg'],
|
||||||
conaryrecipe: ['file.recipe'],
|
conaryrecipe: ['file.recipe'],
|
||||||
conf: ['auto.master', 'file.conf', 'texdoc.cnf', '.x11vncrc', '.chktexrc', '.ripgreprc', 'ripgreprc', 'file.ctags'],
|
conf: ['auto.master', 'file.conf', 'texdoc.cnf', '.x11vncrc', '.chktexrc', '.ripgreprc', 'ripgreprc', 'file.ctags', '.mbsyncrc'],
|
||||||
config: ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'],
|
config: ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'],
|
||||||
confini: ['pacman.conf', 'paru.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'],
|
confini: ['pacman.conf', 'paru.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'],
|
||||||
context: ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
|
context: ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
|
||||||
@ -219,7 +219,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
'.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc',
|
'.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc',
|
||||||
'/home/user/.config/bpython/config', '/home/user/.config/mypy/config', '.wakatime.cfg', '.replyrc',
|
'/home/user/.config/bpython/config', '/home/user/.config/mypy/config', '.wakatime.cfg', '.replyrc',
|
||||||
'psprint.conf', 'sofficerc', 'any/.config/lxqt/globalkeyshortcuts.conf', 'any/.config/screengrab/screengrab.conf',
|
'psprint.conf', 'sofficerc', 'any/.config/lxqt/globalkeyshortcuts.conf', 'any/.config/screengrab/screengrab.conf',
|
||||||
'any/.local/share/flatpak/repo/config'],
|
'any/.local/share/flatpak/repo/config', '.notmuch-config'],
|
||||||
dot: ['file.dot', 'file.gv'],
|
dot: ['file.dot', 'file.gv'],
|
||||||
dracula: ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'],
|
dracula: ['file.drac', 'file.drc', 'filelvs', 'filelpe', 'drac.file', 'lpe', 'lvs', 'some-lpe', 'some-lvs'],
|
||||||
dtd: ['file.dtd'],
|
dtd: ['file.dtd'],
|
||||||
@ -476,6 +476,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
msidl: ['file.odl', 'file.mof'],
|
msidl: ['file.odl', 'file.mof'],
|
||||||
msql: ['file.msql'],
|
msql: ['file.msql'],
|
||||||
mojo: ['file.mojo', 'file.🔥'],
|
mojo: ['file.mojo', 'file.🔥'],
|
||||||
|
msmtp: ['.msmtprc'],
|
||||||
mupad: ['file.mu'],
|
mupad: ['file.mu'],
|
||||||
mush: ['file.mush'],
|
mush: ['file.mush'],
|
||||||
mustache: ['file.mustache'],
|
mustache: ['file.mustache'],
|
||||||
|
|||||||
@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
322,
|
||||||
/**/
|
/**/
|
||||||
321,
|
321,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user