From 81e2a93bcd97432cf89f87829e52aade9cdabfb1 Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Wed, 4 Apr 2018 08:11:10 -0700 Subject: [PATCH] force forward slash for cli path --- plugin/wakatime.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index f3071bd..3ffafdd 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -42,7 +42,7 @@ let s:VERSION = '7.1.0' if s:home == '$WAKATIME_HOME' let s:home = expand("$HOME") endif - let s:cli_location = expand(":p:h") . '/packages/wakatime/cli.py' + let s:cli_location = substitute(expand(":p:h"), '\', '/', 'g') . '/packages/wakatime/cli.py' let s:config_file = s:home . '/.wakatime.cfg' let s:default_configs = ['[settings]', 'debug = false', 'hidefilenames = false', 'ignore =', ' COMMIT_EDITMSG$', ' PULLREQ_EDITMSG$', ' MERGE_MSG$', ' TAG_EDITMSG$'] let s:data_file = s:home . '/.wakatime.data'