Mercurial > vim
comparison runtime/doc/options.txt @ 25990:ac330e2fecc4 v8.2.3528
patch 8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scope
Commit: https://github.com/vim/vim/commit/f4d8b76d304dabc39c06d2344cd4c7b28484811b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Oct 17 14:13:09 2021 +0100
patch 8.2.3528: 'thesaurus' and 'thesaurusfunc' do not have the same scope
Problem: 'thesaurus' and 'thesaurusfunc' do not have the same scope.
Solution: Make 'thesaurusfunc' global-local.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Oct 2021 15:15:04 +0200 |
parents | aade8ef975d5 |
children | ebedba7a4898 |
comparison
equal
deleted
inserted
replaced
25989:b2a27d7a9427 | 25990:ac330e2fecc4 |
---|---|
8025 | 8025 |
8026 *'thesaurus'* *'tsr'* | 8026 *'thesaurus'* *'tsr'* |
8027 'thesaurus' 'tsr' string (default "") | 8027 'thesaurus' 'tsr' string (default "") |
8028 global or local to buffer |global-local| | 8028 global or local to buffer |global-local| |
8029 List of file names, separated by commas, that are used to lookup words | 8029 List of file names, separated by commas, that are used to lookup words |
8030 for thesaurus completion commands |i_CTRL-X_CTRL-T|. | 8030 for thesaurus completion commands |i_CTRL-X_CTRL-T|. See |
8031 | 8031 |compl-thesaurus|. |
8032 Each line in the file should contain words with similar meaning, | 8032 |
8033 separated by non-keyword characters (white space is preferred). | 8033 This option is not used if 'thesaurusfunc' is set, either for the |
8034 Maximum line length is 510 bytes. | 8034 buffer or globally. |
8035 | |
8036 An English word list was added to this github issue: | |
8037 https://github.com/vim/vim/issues/629#issuecomment-443293282 | |
8038 Unpack thesaurus_pkg.zip, put the thesaurus.txt file somewhere, e.g. | |
8039 ~/.vim/thesaurus/english.txt, and the 'thesaurus' option to this file | |
8040 name. | |
8041 | 8035 |
8042 To include a comma in a file name precede it with a backslash. Spaces | 8036 To include a comma in a file name precede it with a backslash. Spaces |
8043 after a comma are ignored, otherwise spaces are included in the file | 8037 after a comma are ignored, otherwise spaces are included in the file |
8044 name. See |option-backslash| about using backslashes. | 8038 name. See |option-backslash| about using backslashes. The use of |
8045 The use of |:set+=| and |:set-=| is preferred when adding or removing | 8039 |:set+=| and |:set-=| is preferred when adding or removing directories |
8046 directories from the list. This avoids problems when a future version | 8040 from the list. This avoids problems when a future version uses |
8047 uses another default. | 8041 another default. Backticks cannot be used in this option for security |
8048 Backticks cannot be used in this option for security reasons. | 8042 reasons. |
8049 | 8043 |
8050 *'thesaurusfunc'* *tsrfu'* | 8044 *'thesaurusfunc'* *tsrfu'* |
8051 'thesaurusfunc' 'tsrfu' string (default: empty) | 8045 'thesaurusfunc' 'tsrfu' string (default: empty) |
8052 local to buffer | 8046 global or local to buffer |global-local| |
8053 {not available when compiled without the |+eval| | 8047 {not available when compiled without the |+eval| |
8054 feature} | 8048 feature} |
8055 This option specifies a function to be used for thesaurus completion | 8049 This option specifies a function to be used for thesaurus completion |
8056 with CTRL-X CTRL-T. |i_CTRL-X_CTRL-T| | 8050 with CTRL-X CTRL-T. |i_CTRL-X_CTRL-T| See |compl-thesaurusfunc|. |
8057 See |complete-functions| for an explanation of how the function is | 8051 |
8058 invoked and what it should return. | |
8059 This option cannot be set from a |modeline| or in the |sandbox|, for | 8052 This option cannot be set from a |modeline| or in the |sandbox|, for |
8060 security reasons. | 8053 security reasons. |
8061 | 8054 |
8062 *'tildeop'* *'top'* *'notildeop'* *'notop'* | 8055 *'tildeop'* *'top'* *'notildeop'* *'notop'* |
8063 'tildeop' 'top' boolean (default off) | 8056 'tildeop' 'top' boolean (default off) |