From 66306748d8960945342d04d41fe6131a00bbf7cb Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Tue, 22 May 2012 12:49:43 +1000 Subject: [PATCH] Only check normal mode for existing `IndentGuidesToggle` mapping. --- plugin/indent_guides.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/indent_guides.vim b/plugin/indent_guides.vim index 910ef79..642553b 100644 --- a/plugin/indent_guides.vim +++ b/plugin/indent_guides.vim @@ -55,7 +55,7 @@ call s:InitVariable('g:indent_guides_debug', 0 ) call s:InitVariable('g:indent_guides_space_guides', 1 ) " Default mapping -if !hasmapto('IndentGuidesToggle') && maparg('ig', 'n') == '' +if !hasmapto('IndentGuidesToggle', 'n') && maparg('ig', 'n') == '' nmap ig IndentGuidesToggle endif