]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Defining filetype for *.repo
authorFrank Brehm <frank.brehm@pixelpark.com>
Fri, 25 Aug 2023 10:50:00 +0000 (12:50 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Fri, 25 Aug 2023 10:50:00 +0000 (12:50 +0200)
files/vimrc-el9

index 162a981d25eb12414af6050fb858ff7badfd3d8d..741ba208ad60fcb5415997e95e2b26da86997835 100644 (file)
@@ -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