view runtime/indent/vim.vim @ 30785:02b5d6f20db2 v9.0.0727

patch 9.0.0727: help in the repository differs from patched version too much Commit: https://github.com/vim/vim/commit/7c6cd443757348aa987eed87506549ab6b2079fe Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 11 21:54:04 2022 +0100 patch 9.0.0727: help in the repository differs from patched version too much Problem: Help in the repository differs from patched version too much. Solution: Make a patch for a few help files.
author Bram Moolenaar <Bram@vim.org>
date Tue, 11 Oct 2022 23:00:05 +0200
parents 1e91e26ceebf
children 3295247d97a5
line wrap: on
line source

vim9script

# Vim indent file
# Language:	Vim script
# Maintainer:	Bram Moolenaar <Bram@vim.org>
# Last Change:	2022 Sep 27

# Only load this indent file when no other was loaded.
if exists('b:did_indent')
    finish
endif

b:did_indent = true
b:undo_indent = 'setlocal indentkeys< indentexpr<'

import autoload '../autoload/dist/vimindent.vim'

setlocal indentexpr=vimindent.Expr(v:lnum)
setlocal indentkeys+==endif,=enddef,=endfu,=endfor,=endwh,=endtry,=},=else,=cat,=finall,=END,0\\
execute('setlocal indentkeys+=0=\"\\\ ,0=#\\\ ')
setlocal indentkeys-=0#
setlocal indentkeys-=: