Filetype not set in vim after brew upgrade
Akshay Hegde
lists+mutt at akshay.is
Mon Sep 9 07:41:13 UTC 2024
On 2024-09-09 08:42 +0200, Jan Eden via Mutt-users wrote:
> Hi,
>
> this is a little off-topic, but maybe other mutt users are affected,
> too: Since upgrading to vim 9.1.700 this morning via homebrew, the
> filetype is not set automatically anymore when calling vim from mutt.
I just updated to 9.1.0722 this morning on my mac but the filetype detection seems
to be working fine for me.
Checking $VIMRUNTIME/filetype.vim [1] reveals that the filetype should get
set when the name of the buffer matches one of the patterns specified.
For me, mutt launches vim with a file name beginning with "mutt-*" which
matches the pattern "mutt{ng,}-*-\w\+" in [1]. So check the filename
mutt is creating for you.
Running the command ':verbose set filetype?' after mutt launches vim
should give you an output similar to mine, and more specifically should
show up as being under the $VIMRUNTIME directory unless you've
overridden it:
filetype=mail
Last set from <home>/.local/pkg/vim/9.1.0722/share/vim/vim91/filetype.vim line 1384
[1]: https://github.com/vim/vim/blob/v9.1.0700/runtime/filetype.vim#L1384
--
Akshay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.mutt.org/pipermail/mutt-users/attachments/20240909/89270242/attachment.asc>
More information about the Mutt-users
mailing list