diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-05-07 23:10:39 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-05-11 22:30:24 -0400 |
commit | 393dc2b0f5f6bdbaa4499d07e9a1d90d924d6441 (patch) | |
tree | 49daebc95ec92f5b335cddd5442a3e1a213e87eb | |
parent | 03cc818fdcd1649b64d42c743c5293c06e3ac07a (diff) | |
download | rneovim-393dc2b0f5f6bdbaa4499d07e9a1d90d924d6441.tar.gz rneovim-393dc2b0f5f6bdbaa4499d07e9a1d90d924d6441.tar.bz2 rneovim-393dc2b0f5f6bdbaa4499d07e9a1d90d924d6441.zip |
vim-patch:8.2.0713: the pam_environment file is not recognized
Problem: The pam_environment file is not recognized.
Solution: Add a filetype pattern for pamenv. (closes vim/vim#6051)
https://github.com/vim/vim/commit/611548105394fdb76827cd431230c9fbfed39929
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index dc0bca2c60..f2ae298b48 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1129,6 +1129,9 @@ au BufNewFile,BufRead pf.conf setf pf " Pam conf au BufNewFile,BufRead */etc/pam.conf setf pamconf +" Pam environment +au BufNewFile,BufRead .pam_environment setf pamenv + " PApp au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index a9984acdd9..4ca2e82ce1 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -321,6 +321,7 @@ let s:filename_checks = { \ 'openroad': ['file.or'], \ 'ora': ['file.ora'], \ 'pamconf': ['/etc/pam.conf'], + \ 'pamenv': ['/home/user/.pam_environment'], \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'], \ 'pascal': ['file.pas', 'file.dpr'], \ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak'], |