From 7d520788b1337da4010839a87c94e73a3fed1784 Mon Sep 17 00:00:00 2001 From: Ethan Spoelstra Date: Wed, 29 Jun 2016 12:50:14 -0500 Subject: [PATCH] Added psake (default) and pester 'compiler' options --- compiler/pester.vim | 8 ++++++++ compiler/psake.vim | 8 ++++++++ ftplugin/ps1.vim | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 compiler/pester.vim create mode 100644 compiler/psake.vim 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