Add support for PowerShell scripts

This commit is contained in:
Dustin C. Hatch
2011-12-20 20:16:27 -06:00
parent 5e58c9fb22
commit 088b5d7c6c
4 changed files with 150 additions and 0 deletions

18
indent/ps1.vim Normal file
View File

@@ -0,0 +1,18 @@
" Vim indent file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
" Version: 1.0
"
" $LastChangedDate $
" $Rev $
" Only load this indent file when no other was loaded.
if exists("b:did_indent")
finish
endif
let b:did_indent = 1
" PS indenting is like indenting C
setlocal cindent cinoptions& cinoptions+=+0
let b:undo_indent = "setl cin<"