diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-16 08:06:07 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-16 08:34:55 +0800 |
commit | 19eb7054ff7b1fbc78e56e7f9ed6537b085147bc (patch) | |
tree | f10b35a7a415ebd3cbfc3b944aec96e65892becc /runtime | |
parent | bc798dfd8cea9a5f93461e05dcb8409b6d96afc0 (diff) | |
download | rneovim-19eb7054ff7b1fbc78e56e7f9ed6537b085147bc.tar.gz rneovim-19eb7054ff7b1fbc78e56e7f9ed6537b085147bc.tar.bz2 rneovim-19eb7054ff7b1fbc78e56e7f9ed6537b085147bc.zip |
vim-patch:9.0.0761: cannot use 'indentexpr' for Lisp indenting
Problem: Cannot use 'indentexpr' for Lisp indenting.
Solution: Add the 'lispoptions' option.
https://github.com/vim/vim/commit/49846fb1a31de99f49d6a7e70efe685197423c84
vim-patch:9.0.0762: build failure
Problem: Build failure.
Solution: Add missing change.
https://github.com/vim/vim/commit/4b082c4bd05f504fda1acaa9d28fca55a2d04857
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index a846f49781..3e056ffc28 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -3352,7 +3352,7 @@ A jump table for the options with a short description can be found at |Q_op|. in Insert mode as specified with the 'indentkeys' option. When this option is not empty, it overrules the 'cindent' and 'smartindent' indenting. When 'lisp' is set, this option is - overridden by the Lisp indentation algorithm. + is only used when 'lispoptions' contains "expr:1". When 'paste' is set this option is not used for indenting. The expression is evaluated with |v:lnum| set to the line number for which the indent is to be computed. The cursor is also in this line @@ -3719,6 +3719,17 @@ A jump table for the options with a short description can be found at |Q_op|. calling an external program if 'equalprg' is empty. This option is not used when 'paste' is set. + *'lispoptions'* *'lop'* +'lispoptions' 'lop' string (default "") + local to buffer + Comma-separated list of items that influence the Lisp indenting when + enabled with the |'lisp'| option. Currently only one item is + supported: + expr:1 use 'indentexpr' for Lisp indenting when it is set + expr:0 do not use 'indentexpr' for Lisp indenting (default) + Note that when using 'indentexpr' the `=` operator indents all the + lines, otherwise the first line is not indented (Vi-compatible). + *'lispwords'* *'lw'* 'lispwords' 'lw' string (default is very long) global or local to buffer |global-local| |