mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
autocmd: introduce "once" feature
Adds a new feature to :autocmd which sets the handler to be executed at most one times. Before: augroup FooGroup autocmd! autocmd FileType foo call Foo() | autocmd! FooGroup * <buffer> augroup END After: autocmd FileType foo once call Foo()
This commit is contained in:
@@ -20160,7 +20160,7 @@ void ex_function(exarg_T *eap)
|
||||
skip_until = vim_strsave((char_u *)".");
|
||||
}
|
||||
|
||||
// Check for ":python <<EOF", ":lua <<EOF", etc.
|
||||
// heredoc: Check for ":python <<EOF", ":lua <<EOF", etc.
|
||||
arg = skipwhite(skiptowhite(p));
|
||||
if (arg[0] == '<' && arg[1] =='<'
|
||||
&& ((p[0] == 'p' && p[1] == 'y'
|
||||
|
Reference in New Issue
Block a user