Permalink
Browse files

Only check normal mode for existing `<Plug>IndentGuidesToggle` mapping.

  • Loading branch information...
nathanaelkane committed May 22, 2012
1 parent 1cd149e commit 66306748d8960945342d04d41fe6131a00bbf7cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/indent_guides.vim
View
@@ -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('<Plug>IndentGuidesToggle') && maparg('<Leader>ig', 'n') == ''
+if !hasmapto('<Plug>IndentGuidesToggle', 'n') && maparg('<Leader>ig', 'n') == ''
nmap <silent><unique> <Leader>ig <Plug>IndentGuidesToggle
endif

0 comments on commit 6630674

Please sign in to comment.