diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-04-02 13:00:15 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-04-02 13:00:15 +0200 |
commit | ef38bcf05196ad7e795dd77b4922fa9db58fc310 (patch) | |
tree | 7b28768034bebc4d90ea5b4b47d14ee432df99c1 /runtime | |
parent | 160a2b4dac198f31fbcff9d696548e011c4602c1 (diff) |
patch 8.2.2690: PowerShell files are not recognizedv8.2.2690
Problem: PowerShell files are not recognized.
Solution: Recognize several PowerShell extension. (Heath Stewart,
closes #8051)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/filetype.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index c34b63b617..f85ac81d3d 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1279,6 +1279,11 @@ au BufNewFile,BufRead .povrayrc setf povini " Povray, Pascal, PHP or assembly au BufNewFile,BufRead *.inc call dist#ft#FTinc() +" PowerShell +au BufNewFile,BufRead *.ps1,*.psd1,*.psm1,*.pssc setf ps1 +au BufNewFile,BufRead *.ps1xml setf ps1xml +au BufNewFile,BufRead *.cdxml,*.psc1 setf xml + " Printcap and Termcap au BufNewFile,BufRead *printcap \ let b:ptcap_type = "print" | setf ptcap |