diff --git a/vim/functions.vim b/vim/functions.vim index 326b5f5..999004b 100644 --- a/vim/functions.vim +++ b/vim/functions.vim @@ -88,9 +88,10 @@ endfunction function! GitStatus() let [a,m,r] = GitGutterGetHunkSummary() - return printf('+%d ~%d -%d', a, m, r) + echo printf('+%d ~%d -%d', a, m, r) endfunction +command! GitStatus call GitStatus() " Redirect command into scratch buffer. Stolen from romainl function! Redir(cmd, rng, start, end)