aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Bart Trojanowski <bart@jukie.net>2009-11-25 00:06:11 -0500
committerGravatar Bart Trojanowski <bart@jukie.net>2009-11-25 00:48:55 -0500
commit553637313bd152071e20035c95fb80b0257b835c (patch)
treee9f58b87d12341f0d279bfd5a6fddee490b4f6ad
parent76dc061de31fbbe5dde0558e45fec17a06b2bf71 (diff)
vim: make timing info a debug option
-rw-r--r--vim/plugin/notmuch.vim5
1 files changed, 4 insertions, 1 deletions
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