annotate runtime/indent/vim.vim @ 32531:c8b28054caec v9.0.1597

patch 9.0.1597: cursor ends up below the window after a put Commit: https://github.com/vim/vim/commit/8509014adda188ee8bdf6a2e123fbf15a91b29d2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 1 19:27:08 2023 +0100 patch 9.0.1597: cursor ends up below the window after a put Problem: Cursor ends up below the window after a put. Solution: Mark w_crow and w_botline invalid when changing the cursor line. (closes #12465)
author Bram Moolenaar <Bram@vim.org>
date Thu, 01 Jun 2023 20:30:05 +0200
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-=: