autocmd BufReadPost * :call CiaReadPost()
function CiaReadPost()
call system("__cia_report vim-open " . expand("%") . "&")
endfunction
autocmd BufWritePost * :call AddExecmod()
function AddExecmod()
let line = getline(1)
if strpart(line, 0, 2) == "#!"
call system("chmod +x ". expand("%"))
endif
call system("__cia_report vim-save " . expand("%") . "&")
endfunction