Mercurial > vim
comparison runtime/doc/options.txt @ 26268:3aa48d4e3dc8 v8.2.3665
patch 8.2.3665: cannot use a lambda for 'tagfunc'
Commit: https://github.com/vim/vim/commit/19916a8c8920b6a1fd737ffa6d4e363fc7a96319
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Wed Nov 24 16:32:55 2021 +0000
patch 8.2.3665: cannot use a lambda for 'tagfunc'
Problem: Cannot use a lambda for 'tagfunc'.
Solution: Use 'tagfunc' like 'opfunc'. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9204)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 24 Nov 2021 17:45:03 +0100 |
parents | 786b2a8ec970 |
children | bb2175e5ccee |
comparison
equal
deleted
inserted
replaced
26267:069672443852 | 26268:3aa48d4e3dc8 |
---|---|
375 Some options ('completefunc', 'imactivatefunc', 'imstatusfunc', 'omnifunc', | 375 Some options ('completefunc', 'imactivatefunc', 'imstatusfunc', 'omnifunc', |
376 'operatorfunc', 'quickfixtextfunc' and 'tagfunc') are set to a function name | 376 'operatorfunc', 'quickfixtextfunc' and 'tagfunc') are set to a function name |
377 or a function reference or a lambda function. Examples: | 377 or a function reference or a lambda function. Examples: |
378 > | 378 > |
379 set opfunc=MyOpFunc | 379 set opfunc=MyOpFunc |
380 set opfunc=function("MyOpFunc") | 380 set opfunc=function('MyOpFunc') |
381 set opfunc=funcref("MyOpFunc") | 381 set opfunc=funcref('MyOpFunc') |
382 set opfunc={t\ ->\ MyOpFunc(t)} | 382 let &opfunc = "{t -> MyOpFunc(t)}" |
383 < | 383 < |
384 | 384 |
385 Setting the filetype | 385 Setting the filetype |
386 | 386 |
387 :setf[iletype] [FALLBACK] {filetype} *:setf* *:setfiletype* | 387 :setf[iletype] [FALLBACK] {filetype} *:setf* *:setfiletype* |
7790 {not available when compiled without the |+eval| | 7790 {not available when compiled without the |+eval| |
7791 feature} | 7791 feature} |
7792 This option specifies a function to be used to perform tag searches. | 7792 This option specifies a function to be used to perform tag searches. |
7793 The function gets the tag pattern and should return a List of matching | 7793 The function gets the tag pattern and should return a List of matching |
7794 tags. See |tag-function| for an explanation of how to write the | 7794 tags. See |tag-function| for an explanation of how to write the |
7795 function and an example. | 7795 function and an example. The value can be the name of a function, a |
7796 |lambda| or a |Funcref|. See |option-value-function| for more | |
7797 information. | |
7796 | 7798 |
7797 *'taglength'* *'tl'* | 7799 *'taglength'* *'tl'* |
7798 'taglength' 'tl' number (default 0) | 7800 'taglength' 'tl' number (default 0) |
7799 global | 7801 global |
7800 If non-zero, tags are significant up to this number of characters. | 7802 If non-zero, tags are significant up to this number of characters. |