diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 6900c53..bbe5050 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -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