From 1cd149ed2ea8d60ac9ba7ca0987ac5250867d83d Mon Sep 17 00:00:00 2001 From: Nate Kane Date: Tue, 22 May 2012 12:37:06 +1000 Subject: [PATCH] Don't perform default mapping if `ig` is already mapped. --- 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 fc6450c..910ef79 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') +if !hasmapto('IndentGuidesToggle') && maparg('ig', 'n') == '' nmap ig IndentGuidesToggle endif