annotate runtime/indent/vim.vim @ 32158:d86042b281df v9.0.1410

patch 9.0.1410: MacOS: sed fails on .po files Commit: https://github.com/vim/vim/commit/16110ccf11de7a41cb0db0ae1ecb829e5a1b98fc Author: Yee Cheng Chin <ychin.git@gmail.com> Date: Thu Mar 16 21:04:31 2023 +0000 patch 9.0.1410: MacOS: sed fails on .po files Problem: MacOS: sed fails on .po files. Solution: Set $LANG to "C". (Yee Cheng Chin, closes https://github.com/vim/vim/issues/12153)
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Mar 2023 22:15:02 +0100
parents a9b5ffbc0428
children 4027cefc2aab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
1 vim9script
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
2
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
3 # Vim indent file
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
4 # Language: Vim script
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
5 # Maintainer: Bram Moolenaar <Bram@vim.org>
32004
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
6 # Last Change: 2023 Feb 02
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
8 # Only load this indent file when no other was loaded.
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
9 if exists('b:did_indent')
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
10 finish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
12
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
13 b:did_indent = true
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
14 b:undo_indent = 'setlocal indentkeys< indentexpr<'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
16 import autoload '../autoload/dist/vimindent.vim'
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
17
30875
3295247d97a5 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30547
diff changeset
18 setlocal indentexpr=vimindent.Expr()
32004
a9b5ffbc0428 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 30875
diff changeset
19 setlocal indentkeys+==endif,=enddef,=endfu,=endfor,=endwh,=endtry,=endclass,=endinterface,=endenum,=},=else,=cat,=finall,=END,0\\
30547
1e91e26ceebf Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 30085
diff changeset
20 execute('setlocal indentkeys+=0=\"\\\ ,0=#\\\ ')
21499
3a1ed539ae2a Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 19181
diff changeset
21 setlocal indentkeys-=0#
26438
c725b8e17f1f Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 26100
diff changeset
22 setlocal indentkeys-=: