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.
author |
Seth Milliken <seth@janrain.com> |
date |
Wed, 29 Dec 2010 15:16:33 -0800 |
parents |
810362206db5
|
children |
b059a86fd333
7eecd2329bf0
|
branches/tags |
(none) |
files |
plugin/gundo.vim |
Changes
--- 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"}}}