Skip to content
Browse files

Behave nicely with iminsert and imsearch. Thanks to nailxx@github.com.

  • Loading branch information...
1 parent a70aa52 commit 1b37d608407afb75ad719ee6e739387372c03529 @Raimondi committed Jul 20, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 autoload/delimitMate.vim
View
4 autoload/delimitMate.vim
@@ -115,6 +115,8 @@ function! delimitMate#Map() "{{{
try
let save_cpo = &cpo
let save_keymap = &keymap
+ let save_iminsert = &iminsert
+ let save_imsearch = &imsearch
set keymap=
set cpo&vim
if b:_l_delimitMate_autoclose
@@ -127,6 +129,8 @@ function! delimitMate#Map() "{{{
finally
let &cpo = save_cpo
let &keymap = save_keymap
+ let &iminsert = save_iminsert
+ let &imsearch = save_imsearch
endtry
let b:delimitMate_enabled = 1

0 comments on commit 1b37d60

Please sign in to comment.
Something went wrong with that request. Please try again.