comparison runtime/doc/builtin.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 57c9377b9c62
children 3e6e6b4e74eb
comparison
equal deleted inserted replaced
28941:f17de8647585 28942:6cdf55afaae9
1498 cindent({lnum}) *cindent()* 1498 cindent({lnum}) *cindent()*
1499 Get the amount of indent for line {lnum} according the C 1499 Get the amount of indent for line {lnum} according the C
1500 indenting rules, as with 'cindent'. 1500 indenting rules, as with 'cindent'.
1501 The indent is counted in spaces, the value of 'tabstop' is 1501 The indent is counted in spaces, the value of 'tabstop' is
1502 relevant. {lnum} is used just like in |getline()|. 1502 relevant. {lnum} is used just like in |getline()|.
1503 When {lnum} is invalid or Vim was not compiled the |+cindent| 1503 When {lnum} is invalid -1 is returned.
1504 feature, -1 is returned.
1505 See |C-indenting|. 1504 See |C-indenting|.
1506 1505
1507 Can also be used as a |method|: > 1506 Can also be used as a |method|: >
1508 GetLnum()->cindent() 1507 GetLnum()->cindent()
1509 1508
5171 lispindent({lnum}) *lispindent()* 5170 lispindent({lnum}) *lispindent()*
5172 Get the amount of indent for line {lnum} according the lisp 5171 Get the amount of indent for line {lnum} according the lisp
5173 indenting rules, as with 'lisp'. 5172 indenting rules, as with 'lisp'.
5174 The indent is counted in spaces, the value of 'tabstop' is 5173 The indent is counted in spaces, the value of 'tabstop' is
5175 relevant. {lnum} is used just like in |getline()|. 5174 relevant. {lnum} is used just like in |getline()|.
5176 When {lnum} is invalid or Vim was not compiled the 5175 When {lnum} is invalid -1 is returned. In |Vim9| script an
5177 |+lispindent| feature, -1 is returned. In |Vim9| script an
5178 error is given. 5176 error is given.
5179 5177
5180 Can also be used as a |method|: > 5178 Can also be used as a |method|: >
5181 GetLnum()->lispindent() 5179 GetLnum()->lispindent()
5182 5180