From 88d6e4d4815b17b0eb87e972c71c755467e05b50 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 26 Oct 2022 15:01:17 +0300 Subject: [PATCH] Group fileline's autocmds --- vim/.vim/pack/stargrave/start/fileline/plugin/fileline.vim | 7 +++++-- vim/.vim/pack/stargrave/start/mark/plugin/mark.vim | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/vim/.vim/pack/stargrave/start/fileline/plugin/fileline.vim b/vim/.vim/pack/stargrave/start/fileline/plugin/fileline.vim index 6dc2c07..dcb7f9d 100644 --- a/vim/.vim/pack/stargrave/start/fileline/plugin/fileline.vim +++ b/vim/.vim/pack/stargrave/start/fileline/plugin/fileline.vim @@ -1,3 +1,6 @@ if exists("*fileline#Goto") | finish | endif -autocmd! BufNewFile *:* nested call fileline#Goto() -autocmd! BufRead *:* nested call fileline#Goto() +augroup FilelinePlugin + autocmd! + autocmd BufNewFile *:* nested call fileline#Goto() + autocmd BufRead *:* nested call fileline#Goto() +augroup END diff --git a/vim/.vim/pack/stargrave/start/mark/plugin/mark.vim b/vim/.vim/pack/stargrave/start/mark/plugin/mark.vim index f42e02d..3693784 100644 --- a/vim/.vim/pack/stargrave/start/mark/plugin/mark.vim +++ b/vim/.vim/pack/stargrave/start/mark/plugin/mark.vim @@ -1,3 +1,3 @@ if exists("*mark#Word") | finish | endif nmap m :call mark#Word() -autocmd! BufWinEnter,WinEnter * call mark#Refresh() +autocmd BufWinEnter,WinEnter * call mark#Refresh() -- 2.44.0