diff --git a/compiler/pester.vim b/compiler/pester.vim new file mode 100644 index 0000000..f967384 --- /dev/null +++ b/compiler/pester.vim @@ -0,0 +1,8 @@ +" Pester in as "compiler" +if exists("current_compiler") + finish +endif + +let current_compiler = "pester" +setlocal makeprg=powershell\ -command\ invoke-pester +setlocal errorformat=%f:%l:%c:%m,%f:%m diff --git a/compiler/psake.vim b/compiler/psake.vim new file mode 100644 index 0000000..59907a3 --- /dev/null +++ b/compiler/psake.vim @@ -0,0 +1,8 @@ +" Psake in as "compiler" +if exists("current_compiler") + finish +endif + +let current_compiler = "psake" +setlocal makeprg=powershell\ -command\ invoke-psake +setlocal errorformat=%f:%l:%c:%m,%f:%m diff --git a/ftplugin/ps1.vim b/ftplugin/ps1.vim index ae81ccb..88670e1 100644 --- a/ftplugin/ps1.vim +++ b/ftplugin/ps1.vim @@ -11,6 +11,8 @@ if exists("b:did_ftplugin") | finish | endif " Don't load another plug-in for this buffer let b:did_ftplugin = 1 +compiler psake + setlocal tw=0 setlocal commentstring=#%s setlocal formatoptions=tcqro