annotate runtime/indent/ps1.vim @ 30007:4123e4bd1708
v9.0.0341
patch 9.0.0341: mapset() does not restore <Nop> mapping properly
Commit: https://github.com/vim/vim/commit/92a3d20682d46359bb50a452b4f831659e799155
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Aug 31 16:40:17 2022 +0100
patch 9.0.0341: mapset() does not restore <Nop> mapping properly
Problem: mapset() does not restore <Nop> mapping properly.
Solution: Use an empty string for <Nop>. (closes https://github.com/vim/vim/issues/11022)
author |
Bram Moolenaar <Bram@vim.org> |
date |
Wed, 31 Aug 2022 17:45:03 +0200 |
parents |
5c98ea5f5d6e |
children |
|
rev |
line source |
24387
|
1 " Vim indent file
|
|
2 " Language: Windows PowerShell
|
|
3 " URL: https://github.com/PProvost/vim-ps1
|
|
4 " Last Change: 2017 Oct 19
|
|
5
|
|
6 " Only load this indent file when no other was loaded.
|
|
7 if exists("b:did_indent")
|
|
8 finish
|
|
9 endif
|
|
10 let b:did_indent = 1
|
|
11
|
|
12 " smartindent is good enough for powershell
|
|
13 setlocal smartindent
|
|
14 " disable the indent removal for # marks
|
|
15 inoremap <buffer> # X#
|
|
16
|
|
17 let b:undo_indent = "setl si<"
|