summaryrefslogtreecommitdiff
path: root/runtime/indent
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-07 21:07:20 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-07 21:07:20 +0200
commit130cbfc31235c6cb52ffe718ea0a5bb50fbbc9fd (patch)
treef2dc11400ba45de6450964841ac9ed3759594602 /runtime/indent
parent125ed2745c0a0570c1f81f249aebb023b2deef1b (diff)
downloadvim-git-130cbfc31235c6cb52ffe718ea0a5bb50fbbc9fd.tar.gz
Update runtime files
Diffstat (limited to 'runtime/indent')
-rw-r--r--runtime/indent/ps1.vim17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtime/indent/ps1.vim b/runtime/indent/ps1.vim
new file mode 100644
index 000000000..0f794db83
--- /dev/null
+++ b/runtime/indent/ps1.vim
@@ -0,0 +1,17 @@
+" Vim indent file
+" Language: Windows PowerShell
+" URL: https://github.com/PProvost/vim-ps1
+" Last Change: 2017 Oct 19
+
+" 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 <buffer> # X#
+
+let b:undo_indent = "setl si<"