Mercurial > vim
annotate runtime/indent/vim.vim @ 35248:bc57ec2381d6 default tip
Added tag v9.1.0433 for changeset c635bbd6e671806bf768b81d16dab956ad9b50d1
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 23 May 2024 08:00:05 +0200 |
parents | 4027cefc2aab |
children |
rev | line source |
---|---|
30547 | 1 vim9script |
2 | |
3 # Vim indent file | |
4 # Language: Vim script | |
32770
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
32004
diff
changeset
|
5 # Maintainer: The Vim Project <https://github.com/vim/vim> |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
32004
diff
changeset
|
6 # Last Change: 2023 Aug 10 |
4027cefc2aab
Farewell to Bram and dedicate upcoming Vim 9.1 to him (#12749)
Christian Brabandt <cb@256bit.org>
parents:
32004
diff
changeset
|
7 # Former Maintainer: Bram Moolenaar <Bram@vim.org> |
7 | 8 |
30547 | 9 # Only load this indent file when no other was loaded. |
10 if exists('b:did_indent') | |
11 finish | |
7 | 12 endif |
30547 | 13 |
14 b:did_indent = true | |
15 b:undo_indent = 'setlocal indentkeys< indentexpr<' | |
7 | 16 |
30547 | 17 import autoload '../autoload/dist/vimindent.vim' |
18 | |
30875 | 19 setlocal indentexpr=vimindent.Expr() |
32004 | 20 setlocal indentkeys+==endif,=enddef,=endfu,=endfor,=endwh,=endtry,=endclass,=endinterface,=endenum,=},=else,=cat,=finall,=END,0\\ |
30547 | 21 execute('setlocal indentkeys+=0=\"\\\ ,0=#\\\ ') |
21499 | 22 setlocal indentkeys-=0# |
26438 | 23 setlocal indentkeys-=: |