view runtime/indent/vim.vim @ 34244:d15d40bf532b

runtime(doc): correct Vim patch for Wayland support Commit: https://github.com/vim/vim/commit/8fecb472c4a3f0f1ea364422424c56d1e0771b3e Author: Christian Brabandt <cb@256bit.org> Date: Tue Jan 30 23:37:41 2024 +0100 runtime(doc): correct Vim patch for Wayland support Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Tue, 30 Jan 2024 23:45:03 +0100
parents 4027cefc2aab
children 5ac476543458
line wrap: on
line source

vim9script

# Vim indent file
# Language:	Vim script
# Maintainer:	The Vim Project <https://github.com/vim/vim>
# Last Change:	2023 Aug 10
# Former Maintainer:	Bram Moolenaar <Bram@vim.org>

# 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()
setlocal indentkeys+==endif,=enddef,=endfu,=endfor,=endwh,=endtry,=endclass,=endinterface,=endenum,=},=else,=cat,=finall,=END,0\\
execute('setlocal indentkeys+=0=\"\\\ ,0=#\\\ ')
setlocal indentkeys-=0#
setlocal indentkeys-=: