mirror of
https://github.com/vim/vim.git
synced 2025-11-14 23:04:02 -05:00
Support added in commit 21ef3c6e59.
See: #18643
closes: #18645
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
18 lines
252 B
VimL
18 lines
252 B
VimL
" Vim :defer command
|
|
" VIM_TEST_SETUP hi link vimUserFunc Todo
|
|
|
|
|
|
function Foo()
|
|
defer delete("tmpfile")
|
|
defer Delete("tmpfile")
|
|
endfunction
|
|
|
|
def Bar()
|
|
defer delete("tmpfile")
|
|
defer Delete("tmpfile")
|
|
defer () => {
|
|
echo "..."
|
|
}()
|
|
enddef
|
|
|