From 26c03c710a5366e87bef880a1b26bb0ee32c0536 Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Sun, 12 Dec 2010 13:08:40 +1000 Subject: [PATCH] Added a check to make sure gvim is being used --- plugin/indent_guides.vim | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugin/indent_guides.vim b/plugin/indent_guides.vim index 47d3352..537bd02 100644 --- a/plugin/indent_guides.vim +++ b/plugin/indent_guides.vim @@ -4,6 +4,12 @@ if exists('g:loaded_indent_guides') || &cp finish endif + +if !has('gui_running') + echoerr "The Indent Guides plugin requires gvim to work correctly." + finish +end + let g:loaded_indent_guides = 1 function! s:IndentGuidesToggle()