diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-16 16:38:42 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-16 16:38:42 +0000 |
commit | c143fa0778fa0d8744867318bb7f7a2e63cf37d7 (patch) | |
tree | 3d071dca57ef102bf085aae06b30f749425c4223 /runtime | |
parent | b1b163efd7bb3ca68cce101d4e431559d2944a8e (diff) |
patch 8.2.3604: not all sudoers files are recognizedv8.2.3604
Problem: Not all sudoers files are recognized.
Solution: Add a file pattern. (Doug Kearns, closes #1192)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 875823c482..2a75126e4d 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2307,6 +2307,9 @@ au BufNewFile,BufRead .bashrc*,.bash[_-]profile*,.bash[_-]logout*,.bash[_-]alias 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") |