Mercurial > vim
comparison runtime/filetype.vim @ 29064:3fbc7462de59 v8.2.5054
patch 8.2.5054: no good filetype for conf files similar to dosini
Commit: https://github.com/vim/vim/commit/635f48010dcf6d97f3a65b4785e1726ad386d3eb
Author: Mudskipper875 <89634034+Mudskipper875@users.noreply.github.com>
Date: Fri Jun 3 18:40:53 2022 +0100
patch 8.2.5054: no good filetype for conf files similar to dosini
Problem: No good filetype for conf files similar to dosini.
Solution: Add the confini filetype. (closes https://github.com/vim/vim/issues/10510)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 03 Jun 2022 19:45:02 +0200 |
parents | 560793de4032 |
children | f8e9d5023bf6 |
comparison
equal
deleted
inserted
replaced
29063:c079d173c33d | 29064:3fbc7462de59 |
---|---|
1288 | 1288 |
1289 " OpenFOAM | 1289 " OpenFOAM |
1290 au BufNewFile,BufRead [a-zA-Z0-9]*Dict\(.*\)\=,[a-zA-Z]*Properties\(.*\)\=,*Transport\(.*\),fvSchemes,fvSolution,fvConstrains,fvModels,*/constant/g,*/0\(\.orig\)\=/* call dist#ft#FTfoam() | 1290 au BufNewFile,BufRead [a-zA-Z0-9]*Dict\(.*\)\=,[a-zA-Z]*Properties\(.*\)\=,*Transport\(.*\),fvSchemes,fvSolution,fvConstrains,fvModels,*/constant/g,*/0\(\.orig\)\=/* call dist#ft#FTfoam() |
1291 | 1291 |
1292 " OpenROAD | 1292 " OpenROAD |
1293 au BufNewFile,BufRead *.or setf openroad | 1293 au BufNewFile,BufRead *.or setf openroad |
1294 | 1294 |
1295 " OPL | 1295 " OPL |
1296 au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl | 1296 au BufNewFile,BufRead *.[Oo][Pp][Ll] setf opl |
1297 | 1297 |
1298 " OpenSCAD | 1298 " OpenSCAD |
1299 au BufNewFile,BufRead *.scad setf openscad | 1299 au BufNewFile,BufRead *.scad setf openscad |
1300 | 1300 |
1301 " Oracle config file | 1301 " Oracle config file |
1302 au BufNewFile,BufRead *.ora setf ora | 1302 au BufNewFile,BufRead *.ora setf ora |
1303 | 1303 |
1304 " Org | 1304 " Org |
1305 au BufNewFile,BufRead *.org,*.org_archive setf org | 1305 au BufNewFile,BufRead *.org,*.org_archive setf org |
1306 | 1306 |
1307 " Packet filter conf | 1307 " Packet filter conf |
1308 au BufNewFile,BufRead pf.conf setf pf | 1308 au BufNewFile,BufRead pf.conf setf pf |
1309 | 1309 |
1310 " Pacman config | 1310 " ini style config files, using # comments |
1311 au BufNewFile,BufRead */etc/pacman.conf setf conf | 1311 au BufNewFile,BufRead */etc/pacman.conf,mpv.conf setf confini |
1312 | 1312 |
1313 " Pacman hooks | 1313 " Pacman hooks |
1314 au BufNewFile,BufRead *.hook | 1314 au BufNewFile,BufRead *.hook |
1315 \ if getline(1) == '[Trigger]' | | 1315 \ if getline(1) == '[Trigger]' | |
1316 \ setf conf | | 1316 \ setf conf | |
1321 | 1321 |
1322 " Pam environment | 1322 " Pam environment |
1323 au BufNewFile,BufRead pam_env.conf,.pam_environment setf pamenv | 1323 au BufNewFile,BufRead pam_env.conf,.pam_environment setf pamenv |
1324 | 1324 |
1325 " PApp | 1325 " PApp |
1326 au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp | 1326 au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp |
1327 | 1327 |
1328 " Password file | 1328 " Password file |
1329 au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd | 1329 au BufNewFile,BufRead */etc/passwd,*/etc/passwd-,*/etc/passwd.edit,*/etc/shadow,*/etc/shadow-,*/etc/shadow.edit,*/var/backups/passwd.bak,*/var/backups/shadow.bak setf passwd |
1330 | 1330 |
1331 " Pascal (also *.p, *.pp, *.inc) | 1331 " Pascal (also *.p, *.pp, *.inc) |
1332 au BufNewFile,BufRead *.pas setf pascal | 1332 au BufNewFile,BufRead *.pas setf pascal |
1333 | 1333 |
1334 " Pascal or Puppet manifest | 1334 " Pascal or Puppet manifest |
1335 au BufNewFile,BufRead *.pp call dist#ft#FTpp() | 1335 au BufNewFile,BufRead *.pp call dist#ft#FTpp() |
1336 | 1336 |
1337 " Delphi or Lazarus program file | 1337 " Delphi or Lazarus program file |
1338 au BufNewFile,BufRead *.dpr,*.lpr setf pascal | 1338 au BufNewFile,BufRead *.dpr,*.lpr setf pascal |
1339 | 1339 |
1340 " Free Pascal makefile definition file | 1340 " Free Pascal makefile definition file |
1341 au BufNewFile,BufRead *.fpc setf fpcmake | 1341 au BufNewFile,BufRead *.fpc setf fpcmake |
1342 | 1342 |
1343 " PDF | 1343 " PDF |
1344 au BufNewFile,BufRead *.pdf setf pdf | 1344 au BufNewFile,BufRead *.pdf setf pdf |
1345 | 1345 |
1346 " PCMK - HAE - crm configure edit | 1346 " PCMK - HAE - crm configure edit |
1347 au BufNewFile,BufRead *.pcmk setf pcmk | 1347 au BufNewFile,BufRead *.pcmk setf pcmk |
1348 | 1348 |
1349 " Perl | 1349 " Perl |
1350 if has("fname_case") | 1350 if has("fname_case") |
1351 au BufNewFile,BufRead *.pl,*.PL call dist#ft#FTpl() | 1351 au BufNewFile,BufRead *.pl,*.PL call dist#ft#FTpl() |
1352 else | 1352 else |
1353 au BufNewFile,BufRead *.pl call dist#ft#FTpl() | 1353 au BufNewFile,BufRead *.pl call dist#ft#FTpl() |
1354 endif | 1354 endif |
1355 au BufNewFile,BufRead *.plx,*.al,*.psgi setf perl | 1355 au BufNewFile,BufRead *.plx,*.al,*.psgi setf perl |
1356 | 1356 |
1357 " Perl, XPM or XPM2 | 1357 " Perl, XPM or XPM2 |
1358 au BufNewFile,BufRead *.pm | 1358 au BufNewFile,BufRead *.pm |
1359 \ if getline(1) =~ "XPM2" | | 1359 \ if getline(1) =~ "XPM2" | |
1360 \ setf xpm2 | | 1360 \ setf xpm2 | |