comparison runtime/doc/insert.txt @ 25974:416237f1de22 v8.2.3520

patch 8.2.3520: cannot define a function for thesaurus completion Commit: https://github.com/vim/vim/commit/160e994d768d03a3c826b58115cde94df8fce607 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Oct 16 15:41:29 2021 +0100 patch 8.2.3520: cannot define a function for thesaurus completion Problem: Cannot define a function for thesaurus completion. Solution: Add 'thesaurusfunc'. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8987, closes 8950)
author Bram Moolenaar <Bram@vim.org>
date Sat, 16 Oct 2021 16:45:04 +0200
parents 11b656e74444
children ac330e2fecc4
comparison
equal deleted inserted replaced
25973:3b34837f4538 25974:416237f1de22
840 subsequent presses would change the word to "furious", 840 subsequent presses would change the word to "furious",
841 "mad" etc. 841 "mad" etc.
842 Other uses include translation between two languages, 842 Other uses include translation between two languages,
843 or grouping API functions by keyword. 843 or grouping API functions by keyword.
844 844
845 If the 'thesaurusfunc' option is set, then the user
846 specified function is invoked to get the list of
847 completion matches and the 'thesaurus' option is not
848 used. See |complete-functions| for an explanation of
849 how the function is invoked and what it should return.
850
845 CTRL-T or 851 CTRL-T or
846 CTRL-N Search forward for next matching keyword. This 852 CTRL-N Search forward for next matching keyword. This
847 keyword replaces the previous matching keyword. 853 keyword replaces the previous matching keyword.
848 854
849 CTRL-P Search backwards for next matching keyword. This 855 CTRL-P Search backwards for next matching keyword. This
1050 CTRL-X CTRL-Z Stop completion without changing the text. 1056 CTRL-X CTRL-Z Stop completion without changing the text.
1051 1057
1052 1058
1053 FUNCTIONS FOR FINDING COMPLETIONS *complete-functions* 1059 FUNCTIONS FOR FINDING COMPLETIONS *complete-functions*
1054 1060
1055 This applies to 'completefunc' and 'omnifunc'. 1061 This applies to 'completefunc', 'thesaurusfunc' and 'omnifunc'.
1056 1062
1057 The function is called in two different ways: 1063 The function is called in two different ways:
1058 - First the function is called to find the start of the text to be completed. 1064 - First the function is called to find the start of the text to be completed.
1059 - Later the function is called to actually find the matches. 1065 - Later the function is called to actually find the matches.
1060 1066