Some plugins (like the builtin comment one) set options to lambdas for convenience (comment.vim does that with 'operatorfunc').
In that case :mksession will include a set operatorfunc=function('<lambda>xxxx') . Trying to source the session file will throw a E700: Unknown function: <lambda>xxxx because the lambda is either not there or has a different number associated.
In the case of comment plugin the lambda is defined from the mappings and is not available on plugin load.
This pull request prevents those operators associated with lambdas from being recorded in the session.
https://github.com/vim/vim/pull/21161
(2 files)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
thanks
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()