testFileAddedToGit.vim 260 B

123456789101112
  1. source helper.vim
  2. let tmpfile = 'fileAddedToGit.tmp'
  3. call system('touch '.tmpfile)
  4. call system('git add '.tmpfile)
  5. execute 'edit '.tmpfile
  6. normal ihello
  7. write
  8. call DumpSigns('fileAddedToGit')
  9. call system('git reset HEAD '.tmpfile)
  10. call system('rm '.tmpfile)