From: Sergey Matveev Date: Wed, 26 Oct 2022 12:01:17 +0000 (+0300) Subject: Group fileline's autocmds X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=88d6e4d4815b17b0eb87e972c71c755467e05b50 Group fileline's autocmds --- 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()