comparison runtime/doc/indent.txt @ 28942:6cdf55afaae9 v8.2.4993

patch 8.2.4993: smart/C/lisp indenting is optional Commit: https://github.com/vim/vim/commit/8e145b82464a21ee4fdf7948f04e2a1d505f8bfa Author: Bram Moolenaar <Bram@vim.org> Date: Sat May 21 20:17:31 2022 +0100 patch 8.2.4993: smart/C/lisp indenting is optional Problem: smart/C/lisp indenting is optional, which makes the code more complex, while it only reduces the executable size a bit. Solution: Graduate FEAT_CINDENT, FEAT_SMARTINDENT and FEAT_LISP.
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 May 2022 21:30:04 +0200
parents 6dd88e45d47d
children 3e6e6b4e74eb
comparison
equal deleted inserted replaced
28941:f17de8647585 28942:6cdf55afaae9
19 programming languages including Java and C++ follow very closely the 19 programming languages including Java and C++ follow very closely the
20 formatting conventions established with C. These options affect only the 20 formatting conventions established with C. These options affect only the
21 indent and do not perform other formatting. There are additional options that 21 indent and do not perform other formatting. There are additional options that
22 affect other kinds of formatting as well as indenting, see |format-comments|, 22 affect other kinds of formatting as well as indenting, see |format-comments|,
23 |fo-table|, |gq| and |formatting| for the main ones. 23 |fo-table|, |gq| and |formatting| for the main ones.
24
25 Note that this will not work when the |+smartindent| or |+cindent| features
26 have been disabled at compile time.
27 24
28 There are in fact four main methods available for indentation, each one 25 There are in fact four main methods available for indentation, each one
29 overrides the previous if it is enabled, or non-empty for 'indentexpr': 26 overrides the previous if it is enabled, or non-empty for 'indentexpr':
30 'autoindent' uses the indent from the previous line. 27 'autoindent' uses the indent from the previous line.
31 'smartindent' is like 'autoindent' but also recognizes some C syntax to 28 'smartindent' is like 'autoindent' but also recognizes some C syntax to