From: Frank Brehm Date: Fri, 25 Aug 2023 10:50:00 +0000 (+0200) Subject: Defining filetype for *.repo X-Git-Tag: 3.0.0^2~35 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=5bc1fea17fb13f36e25e820e7945e9a61c15044c;p=pixelpark%2Fcreate-vmware-tpl.git Defining filetype for *.repo --- diff --git a/files/vimrc-el9 b/files/vimrc-el9 index 162a981..741ba20 100644 --- a/files/vimrc-el9 +++ b/files/vimrc-el9 @@ -145,6 +145,10 @@ endif " http://www.linuxpowertop.org/known.php let &guicursor = &guicursor . ",a:blinkon0" +" Set the filetype based on the file's extension, but only if +" 'filetype' has not already been set +au BufRead,BufNewFile *.repo setfiletype dosini + " Source a global configuration file if available if filereadable("/etc/vimrc.local") source /etc/vimrc.local