diff --git a/.vimrc b/.vimrc index 614f012..5b04a98 100644 --- a/.vimrc +++ b/.vimrc @@ -103,6 +103,9 @@ nmap h :vsp \| :Glog -- % \| :copen " Map HighlightRepeats function vn R :call HighlightRepeats() +" Patch for delimitMate +imap =YcmOnDeleteChar()delimitMateBS + " Function keys :nnoremap :set hlsearch! call togglebg#map("") " load the background script @@ -314,3 +317,11 @@ function! SyntasticCheckHook(errors) endif endfunction +" Patch for delimitMate +function! YcmOnDeleteChar() + if pumvisible() + return "\" + endif + return "" +endfunction +