From 676e9dd82ef7e2dfb61a3eea0be36bc997def02a Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 11 Dec 2014 23:16:49 +0100 Subject: Add powershell support, closes #40 --- indent/ps1.vim | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 indent/ps1.vim (limited to 'indent') diff --git a/indent/ps1.vim b/indent/ps1.vim new file mode 100644 index 00000000..8198a504 --- /dev/null +++ b/indent/ps1.vim @@ -0,0 +1,20 @@ +" Vim indent file +" Language: Windows PowerShell +" Maintainer: Peter Provost +" Version: 2.10 +" Project Repository: https://github.com/PProvost/vim-ps1 +" Vim Script Page: http://www.vim.org/scripts/script.php?script_id=1327" + +" Only load this indent file when no other was loaded. +if exists("b:did_indent") + finish +endif +let b:did_indent = 1 + +" smartindent is good enough for powershell +setlocal smartindent +" disable the indent removal for # marks +inoremap # X# + +let b:undo_indent = "setl si<" + -- cgit v1.2.3