summaryrefslogtreecommitdiffstats
path: root/indent/ps1.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 /indent/ps1.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 'indent/ps1.vim')
-rw-r--r--indent/ps1.vim20
1 files changed, 20 insertions, 0 deletions
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 <peter@provost.org>
+" 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<"
+