view runtime/indent/ps1.vim @ 31022:9a5e540510cf v9.0.0846

patch 9.0.0846: using assert_fails() may cause hit-enter prompt Commit: https://github.com/vim/vim/commit/f220643c260d55d21a841a3c4032daadc41bc50b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Nov 9 00:44:30 2022 +0000 patch 9.0.0846: using assert_fails() may cause hit-enter prompt Problem: Using assert_fails() may cause hit-enter prompt. Solution: Set no_wait_return. (closes https://github.com/vim/vim/issues/11522)
author Bram Moolenaar <Bram@vim.org>
date Wed, 09 Nov 2022 01:45:03 +0100
parents 5c98ea5f5d6e
children
line wrap: on
line source

" 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<"