diff options
author | Christian Clason <c.clason@uni-graz.at> | 2021-11-16 18:34:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-16 18:34:39 +0100 |
commit | 99211b008c10561560e84eabfaa22e1577ac179a (patch) | |
tree | 7ad00d06b1f640b1e91de3a34688176af562921c /runtime | |
parent | b5eab2a98a11468e3c8b25276a9ab24909a67254 (diff) | |
download | rneovim-99211b008c10561560e84eabfaa22e1577ac179a.tar.gz rneovim-99211b008c10561560e84eabfaa22e1577ac179a.tar.bz2 rneovim-99211b008c10561560e84eabfaa22e1577ac179a.zip |
vim-patch:8.2.3604: not all sudoers files are recognized (#16338)
Problem: Not all sudoers files are recognized.
Solution: Add a file pattern. (Doug Kearns, closes vim/vim#1192)
https://github.com/vim/vim/commit/c143fa0778fa0d8744867318bb7f7a2e63cf37d7
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 9f86b246f8..13d8c72e76 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2303,6 +2303,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") |