vim-polyglot/indent/ps1.vim

25 lines
656 B
VimL
Raw Normal View History

if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'powershell') != -1
finish
endif
2014-12-11 17:16:49 -05:00
" 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
2017-11-19 15:26:59 -05:00
inoremap <buffer> # X#
2014-12-11 17:16:49 -05:00
let b:undo_indent = "setl si<"