Skip to content

plugin: remove BufReadPost event from newbb/newbbappend autocmd #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions plugin/newbb.vim
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ fun! NewBBTemplate()

let l:paste = &paste
set nopaste

" Get the header
call BBHeader()

" New the bb template
put ='SUMMARY = \"\"'
put ='HOMEPAGE = \"\"'
put ='LICENSE = \"\"'
put ='LICENSE = \"\"'
put ='SECTION = \"\"'
put ='DEPENDS = \"\"'
put =''
Expand All @@ -80,7 +80,7 @@ if v:progname =~ "vimdiff"
endif

augroup NewBB
au BufNewFile,BufReadPost *.bb
au BufNewFile *.bb
\ if g:bb_create_on_empty |
\ call NewBBTemplate() |
\ endif
Expand Down
2 changes: 1 addition & 1 deletion plugin/newbbappend.vim
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if v:progname =~ "vimdiff"
endif

augroup NewBBAppend
au BufNewFile,BufReadPost *.bbappend
au BufNewFile *.bbappend
\ if g:bb_create_on_empty |
\ call NewBBAppendTemplate() |
\ endif
Expand Down