summaryrefslogtreecommitdiffstats
path: root/ftdetect/polyglot.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2014-12-11 23:16:49 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2014-12-11 23:16:49 +0100
commit676e9dd82ef7e2dfb61a3eea0be36bc997def02a (patch)
treec82eb0ef771f4b7481d40a19fc7f8fe7ed421cff /ftdetect/polyglot.vim
parent23af3f70da9888adb112b62496b83e9770a53ebf (diff)
downloadvim-polyglot-1.11.0.tar.gz
vim-polyglot-1.11.0.zip
Add powershell support, closes #40v1.11.0
Diffstat (limited to 'ftdetect/polyglot.vim')
-rw-r--r--ftdetect/polyglot.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim
index 4e194287..cc2d2e53 100644
--- a/ftdetect/polyglot.vim
+++ b/ftdetect/polyglot.vim
@@ -144,6 +144,10 @@ endfunction
autocmd BufReadPost *.pl,*.pm,*.t call s:DetectPerl6()
autocmd BufNew,BufRead *.nqp setf perl6
autocmd BufNewFile,BufRead *.proto setfiletype proto
+au BufNewFile,BufRead *.ps1 set ft=ps1
+au BufNewFile,BufRead *.psd1 set ft=ps1
+au BufNewFile,BufRead *.psm1 set ft=ps1
+au BufNewFile,BufRead *.ps1xml set ft=ps1xml
au! BufRead,BufNewFile *.pp setfiletype puppet
au! BufRead,BufNewFile Puppetfile setfiletype ruby
function! s:setf(filetype) abort