2017-04-05 13:50:44 +00:00
|
|
|
|
" Vim indent file
|
2020-10-28 13:44:54 +00:00
|
|
|
|
" Language: Windows PowerShell
|
|
|
|
|
" Maintainer: Peter Provost <peter@provost.org>
|
|
|
|
|
" Version: 2.10
|
2017-04-05 13:50:44 +00:00
|
|
|
|
" Project Repository: https://github.com/PProvost/vim-ps1
|
2020-10-28 13:44:54 +00:00
|
|
|
|
" Vim Script Page: http://www.vim.org/scripts/script.php?script_id=1327"
|
2017-04-05 13:50:44 +00:00
|
|
|
|
|
|
|
|
|
" Only load this indent file when no other was loaded.
|
|
|
|
|
if exists("b:did_indent")
|
2020-10-28 13:44:54 +00:00
|
|
|
|
finish
|
2017-04-05 13:50:44 +00:00
|
|
|
|
endif
|
|
|
|
|
let b:did_indent = 1
|
|
|
|
|
|
2020-10-28 13:44:54 +00:00
|
|
|
|
" smartindent is good enough for powershell
|
|
|
|
|
setlocal smartindent
|
|
|
|
|
" disable the indent removal for # marks
|
|
|
|
|
inoremap <buffer> # X#
|
|
|
|
|
|
|
|
|
|
let b:undo_indent = "setl si<"
|
2017-04-05 13:50:44 +00:00
|
|
|
|
|