Skip to content
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

Template is added to new PKGBUILD files twice #13

Open
amagura opened this issue Nov 16, 2018 · 0 comments
Open

Template is added to new PKGBUILD files twice #13

amagura opened this issue Nov 16, 2018 · 0 comments

Comments

@amagura
Copy link

amagura commented Nov 16, 2018

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 in PKGBUILD.vim/plugin/PKGBUILD.vim fixes the issue.

How to reproduce

  1. run vim PKGBUILD in a directory without any PKGBUILD files.
    • PKGBUILD.vim should dump the template to the file twice.
  2. type ggvGD to empty the file and then type :w.
  3. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant