comparison runtime/indent/README.txt @ 28517:f73a9bdff3a3

Update runtime files Commit: https://github.com/vim/vim/commit/75ab590f8504a8912ca0b8c58f6b897bb7a34f07 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Apr 18 15:36:40 2022 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Mon, 18 Apr 2022 16:45:03 +0200
parents 19b757c6c6a7
children 4027cefc2aab
comparison
equal deleted inserted replaced
28516:91556781726b 28517:f73a9bdff3a3
29 29
30 Always use ":setlocal" to set 'indentexpr'. This avoids it being carried over 30 Always use ":setlocal" to set 'indentexpr'. This avoids it being carried over
31 to other buffers. 31 to other buffers.
32 32
33 To trigger the indenting after typing a word like "endif", add the word to the 33 To trigger the indenting after typing a word like "endif", add the word to the
34 'cinkeys' option with "+=". 34 'indentkeys' option with "+=".
35 35
36 You normally set 'indentexpr' to evaluate a function and then define that 36 You normally set 'indentexpr' to evaluate a function and then define that
37 function. That function only needs to be defined once for as long as Vim is 37 function. That function only needs to be defined once for as long as Vim is
38 running. Add a test if the function exists and use ":finish", like this: 38 running. Add a test if the function exists and use ":finish", like this:
39 if exists("*GetMyIndent") 39 if exists("*GetMyIndent")