view runtime/indent/vim.vim @ 30802:15130b9714c5

Added tag v9.0.0735 for changeset 4fbd9086f149fdd518d95a8d2e2b72d27210649a
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Oct 2022 22:45:04 +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-=: