[vim/vim] msmtp entry disappeared from filetype.vim (Issue #20751)

5 views
Skip to first unread message

chdiza

unread,
10:23 AM (12 hours ago) 10:23 AM
to vim/vim, Subscribed
chdiza created an issue (vim/vim#20751)

Steps to reproduce

9.1.0322 brought support for msmtprc into filetype.vim. To my surprise, filetype.vim no longer has this entry. Why was it removed? Was this an accident?

Expected behaviour

I expected there to still be an msmtprc entry in filetype.vim. I also expected that searching through the git log for msm would turn up a commit that undid the addition of msmtprc support.

Version of Vim

9.2.0780

Environment

Linux Mint 22

Logs and stack traces


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20751@github.com>

dkearns

unread,
10:57 AM (11 hours ago) 10:57 AM
to vim/vim, Subscribed
dkearns left a comment (vim/vim#20751)

It's still supported:

https://github.com/vim/vim/blob/834b8d218f1db92e587ecd449e5ce88b41fbe256/runtime/autoload/dist/ft.vim#L3340-L3341


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20751/4946949786@github.com>

h_east

unread,
3:20 PM (7 hours ago) 3:20 PM
to vim/vim, Subscribed
h-east left a comment (vim/vim#20751)

It's simply that the way file types are managed has changed.

https://github.com/vim/vim/blob/834b8d218f1db92e587ecd449e5ce88b41fbe256/runtime/autoload/dist/ft.vim#L9-L10

https://github.com/vim/vim/blob/834b8d218f1db92e587ecd449e5ce88b41fbe256/runtime/filetype.vim#L7-L9


It is correctly detecting .msmtprc even in the current state.

$ touch .msmtprc
$ vim --clean .msmtprc
:set ft?
  filetype=msmtp


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20751/4948440788@github.com>

Reply all
Reply to author
Forward
0 new messages