From: Bart Trojanowski Date: Wed, 25 Nov 2009 05:06:11 +0000 (-0500) Subject: vim: make timing info a debug option X-Git-Tag: 0.1~313^2~45 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=553637313bd152071e20035c95fb80b0257b835c;p=notmuch.git vim: make timing info a debug option --- diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim index fbe4cd9e..e9763ebe 100644 --- a/vim/plugin/notmuch.vim +++ b/vim/plugin/notmuch.vim @@ -23,6 +23,7 @@ let s:notmuch_defaults = { \ 'g:notmuch_cmd': 'notmuch' , + \ 'g:notmuch_debug': 0 , \ \ 'g:notmuch_search_newest_first': 1 , \ 'g:notmuch_search_from_column_width': 20 , @@ -795,7 +796,9 @@ function! s:NM_run(args) let err = v:shell_error let delta = reltime(start) - echo printf('[%s] {%s} %s', reltimestr(delta), string(err), string(cmd)) + if exists('g:notmuch_debug') && g:notmuch_debug + echo printf('[%s] {%s} %s', reltimestr(delta), string(err), string(cmd)) + endif if err echohl Error