# HG changeset patch # User Seth Milliken # Date 1293664593 28800 # Node ID c839b22aa01560d8f25c7cbec13f93cb8fdcd4c5 # Parent 810362206db582441cb91d788838014219dc8c3e defer "can't load gundo" warning Only inform that gundo didn't load when an attempt is made to invoke it. Too many hosts still don't have vim 7.3, but I'd like to do a straight update of my vimfiles from my dvcs without needing any fiddly conditionals in order to load vim without a warning message. diff -r 810362206db5 -r c839b22aa015 plugin/gundo.vim --- a/plugin/gundo.vim Thu Dec 09 22:42:34 2010 -0500 +++ b/plugin/gundo.vim Wed Dec 29 15:16:33 2010 -0800 @@ -17,7 +17,10 @@ let loaded_gundo = 1"}}} if v:version < '703'"{{{ - echo "Gundo requires Vim 7.3+" + function! s:GundoDidNotLoad() + echohl WarningMsg|echomsg "Gundo unavailable: requires Vim 7.3+"|echohl None + endfunction + command! -nargs=0 GundoToggle call s:GundoDidNotLoad() finish endif"}}}