]> Sergey Matveev's repositories - dotfiles.git/commitdiff
Group fileline's autocmds
authorSergey Matveev <stargrave@stargrave.org>
Wed, 26 Oct 2022 12:01:17 +0000 (15:01 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 26 Oct 2022 12:01:17 +0000 (15:01 +0300)
vim/.vim/pack/stargrave/start/fileline/plugin/fileline.vim
vim/.vim/pack/stargrave/start/mark/plugin/mark.vim

index 6dc2c0736b73861ef33b638dc4fff22a0a0ef86b..dcb7f9d355b850d7ce0cee103467a4e6c8c4653e 100644 (file)
@@ -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
index f42e02d4c21d6927a4dbce6483baa464541f29e2..369378497af480c18284dec509ffff063560323d 100644 (file)
@@ -1,3 +1,3 @@
 if exists("*mark#Word") | finish | endif
 nmap <silent> <leader>m :call mark#Word()<CR>
-autocmd! BufWinEnter,WinEnter * call mark#Refresh()
+autocmd BufWinEnter,WinEnter * call mark#Refresh()