auto create log file if does not exist

This commit is contained in:
Alan Hamlett 2013-07-01 21:07:38 -07:00
parent 7d71f33b4c
commit 7d41df4edb
1 changed files with 5 additions and 3 deletions

View File

@ -55,6 +55,9 @@ endif
" We are not away until getting a CursorHold event
let s:away_start = 0
" Create logfile if does not exist
exec "silent !touch ~/.wakatime.log"
python << ENDPYTHON
import vim
import uuid
@ -83,6 +86,8 @@ function! s:setUpdateTime()
endif
endfunction
call s:setUpdateTime()
function! s:GetCurrentFile()
return expand("%:p")
endfunction
@ -200,9 +205,6 @@ endfunction
" }}}
call s:setUpdateTime()
" Autocommand Events {{{
augroup Wakatime