patch 9.1.1212: filetype: logrotate'd pacmanlogs are not recognized

Problem:  filetype: logrotate'd pacmanlogs are not recognized
Solution: also detect pacman.log* files as pacmanlog filetype,
          remove BufNewFile autocmd (Eisuke Kawashima)

closes: #16873

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Eisuke Kawashima
2025-03-16 20:37:14 +01:00
committed by Christian Brabandt
parent 3c7d9b11c8
commit 20d23ce93b
3 changed files with 15 additions and 2 deletions

View File

@ -1814,7 +1814,7 @@ au BufNewFile,BufRead *.hook
au BufNewFile,BufRead {.,}makepkg.conf setf sh
" Pacman log
au BufNewFile,BufRead pacman.log setf pacmanlog
au BufRead pacman.log* call s:StarSetf('pacmanlog')
" Pam conf
au BufNewFile,BufRead */etc/pam.conf setf pamconf