From fc930d0cf375ab4b7a38310594d31f4b73cd775c Mon Sep 17 00:00:00 2001 From: Vladimir Eremeev Date: Tue, 15 Feb 2022 15:25:50 +0300 Subject: [PATCH] Handle .docx, .xlsx and .pptx files from modern MS Office --- plugin/utl.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/utl.vim b/plugin/utl.vim index 5d4c2da..28b691d 100644 --- a/plugin/utl.vim +++ b/plugin/utl.vim @@ -1044,11 +1044,11 @@ fu! s:Utl_checkMediaType(path) let mt = '' " MS windows oriented - if ext==?'doc' || ext==?'dot' || ext==?'wrd' + if ext==?'doc' || ext==?'dot' || ext==?'wrd' || ext==?'docx' let mt = 'application/msword' - elseif ext==?'xls' + elseif ext==?'xls' || ext==?'xlsx' let mt = 'application/excel' - elseif ext==?'ppt' + elseif ext==?'ppt' || ext==?'pptx' let mt = 'application/powerpoint' elseif ext==?'wav' let mt = 'audio/wav'