diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-03-10 04:32:58 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-03-10 04:58:30 +0100 |
commit | c12cf5bde7a00fbc1a78ad762e61caae1f6d4188 (patch) | |
tree | ca2af046d87a885295604ad6bab3d21820c8bc3f /runtime/lua/vim/shared.lua | |
parent | 092e7e6c60588463389182a3babde9f4ee98bc1c (diff) | |
download | rneovim-c12cf5bde7a00fbc1a78ad762e61caae1f6d4188.tar.gz rneovim-c12cf5bde7a00fbc1a78ad762e61caae1f6d4188.tar.bz2 rneovim-c12cf5bde7a00fbc1a78ad762e61caae1f6d4188.zip |
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()
Diffstat (limited to 'runtime/lua/vim/shared.lua')
0 files changed, 0 insertions, 0 deletions