mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
vim-patch:e8bbdb9: runtime(doc): Add :defe[r] shortname spec and tag (#35741)
closes: vim/vim#18281
e8bbdb90e4
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -360,8 +360,8 @@ is used as a method: >
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
|
|
||||||
3. Cleaning up in a function ~
|
3. Cleaning up in a function ~
|
||||||
*:defer*
|
*:defe* *:defer*
|
||||||
:defer {func}({args}) Call {func} when the current function is done.
|
:defe[r] {func}({args}) Call {func} when the current function is done.
|
||||||
{args} are evaluated here.
|
{args} are evaluated here.
|
||||||
|
|
||||||
Quite often a command in a function has a global effect, which must be undone
|
Quite often a command in a function has a global effect, which must be undone
|
||||||
|
Reference in New Issue
Block a user