Mercurial > vim
diff runtime/filetype.vim @ 26143:741cb243a7d2 v8.2.3604
patch 8.2.3604: not all sudoers files are recognized
Commit: https://github.com/vim/vim/commit/c143fa0778fa0d8744867318bb7f7a2e63cf37d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Nov 16 16:38:42 2021 +0000
patch 8.2.3604: not all sudoers files are recognized
Problem: Not all sudoers files are recognized.
Solution: Add a file pattern. (Doug Kearns, closes https://github.com/vim/vim/issues/1192)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 16 Nov 2021 17:45:03 +0100 |
parents | 77ad8ea01c00 |
children | 624439a39432 |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2307,6 +2307,9 @@ au BufNewFile,BufRead .bashrc*,.bash[_-] au BufNewFile,BufRead .kshrc* call dist#ft#SetFileTypeSH("ksh") au BufNewFile,BufRead .profile* call dist#ft#SetFileTypeSH(getline(1)) +" Sudoers +au BufNewFile,BufRead */etc/sudoers.d/* call s:StarSetf('sudoers') + " tcsh scripts ending in a star au BufNewFile,BufRead .tcshrc* call dist#ft#SetFileTypeShell("tcsh")