You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you open a new† PKGBUILD file in vim, PKGBUILD.vim dumps the template into the current buffer twice; this does not, however, happen when you open an empty PKGBUILD file that already exists on the file system.
Interestingly, commenting out the TLoad function in PKGBUILD.vim/plugin/PKGBUILD.vim fixes the issue.
How to reproduce
run vim PKGBUILD in a directory without any PKGBUILD files.
PKGBUILD.vim should dump the template to the file twice.
type ggvGD to empty the file and then type :w.
open the file again.
This time the template will only be dumped to the buffer once, as expected.
† the file doesn't exist yet and won't exist until vim writes to it for the first time.
The text was updated successfully, but these errors were encountered:
Description
When you open a new† PKGBUILD file in vim,
PKGBUILD.vim
dumps the template into the current buffer twice; this does not, however, happen when you open an empty PKGBUILD file that already exists on the file system.Interestingly, commenting out the
TLoad
function inPKGBUILD.vim/plugin/PKGBUILD.vim
fixes the issue.How to reproduce
vim PKGBUILD
in a directory without any PKGBUILD files.PKGBUILD.vim
should dump the template to the file twice.ggvGD
to empty the file and then type:w
.† the file doesn't exist yet and won't exist until vim writes to it for the first time.
The text was updated successfully, but these errors were encountered: