view runtime/indent/ps1.vim @ 30914:58cb6591ad12 v9.0.0791

patch 9.0.0791: at the hit-Enter prompt the End and Home keys may not work Commit: https://github.com/vim/vim/commit/a353282c13287058fde95bb6eb914e342fd4253c Author: Trygve Aaberge <trygveaa@gmail.com> Date: Tue Oct 18 19:22:25 2022 +0100 patch 9.0.0791: at the hit-Enter prompt the End and Home keys may not work Problem: At the hit-Enter prompt the End and Home keys may not work. Solution: Use the special "@" code for End and Home, like it was done for the cursor keys in patch 8.2.2246. (Trygve Aaberge, closes #11396)
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Oct 2022 20:30:03 +0200
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<"