diff --git a/plugin/wakatime.vim b/plugin/wakatime.vim index 6241b66..f6bdf29 100644 --- a/plugin/wakatime.vim +++ b/plugin/wakatime.vim @@ -280,6 +280,16 @@ let s:VERSION = '4.0.15' return s:false endfunction + function! s:EnableDebugMode() + call s:SetIniSetting('settings', 'debug', 'true') + let s:is_debug_mode_on = s:true + endfunction + + function! s:DisableDebugMode() + call s:SetIniSetting('settings', 'debug', 'false') + let s:is_debug_mode_on = s:false + endfunction + " }}} @@ -318,5 +328,13 @@ let s:VERSION = '4.0.15' " }}} +" Plugin Commands {{{ + + :command -nargs=0 WakaTimeDebugEnable call s:EnableDebugMode() + :command -nargs=0 WakaTimeDebugDisable call s:DisableDebugMode() + +" }}} + + " Restore cpoptions let &cpo = s:old_cpo