mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
13 lines
260 B
VimL
13 lines
260 B
VimL
source helper.vim
|
|
|
|
let tmpfile = 'fileAddedToGit.tmp'
|
|
call system('touch '.tmpfile)
|
|
call system('git add '.tmpfile)
|
|
execute 'edit '.tmpfile
|
|
normal ihello
|
|
write
|
|
call DumpSigns('fileAddedToGit')
|
|
|
|
call system('git reset HEAD '.tmpfile)
|
|
call system('rm '.tmpfile)
|