From 927ba8d2299a65ddab3e79644c48d06386dac2d5 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sat, 17 Sep 2016 17:08:58 +0200 Subject: [PATCH] capture stdout from wakatime-cli to fix #32 --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index c601dfb..62b884a 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -146,7 +146,7 @@ let s:VERSION = '4.0.12' if has('win32') || has('win64') exec 'silent !start /min cmd /c "' . s:JoinArgs(cmd) . '"' else - exec 'silent !' . s:JoinArgs(cmd) . ' &' + let stdout = system(s:JoinArgs(cmd) . ' &') endif call s:SetLastHeartbeat(a:time, a:time, file) endif