xavierd / clang_complete

Vim plugin that use clang for completing C/C++ code.
http://www.vim.org/scripts/script.php?script_id=3302
1.96k stars 308 forks source link

Fix return key mapping conflicts with auto-pairs #427

Closed mkc188 closed 9 years ago

mkc188 commented 9 years ago

When using 'jiangmiao/auto-pairs' or other similar auto close pair plugins, is mapped to insert a new indented line if cursor in (|), {|} [|], '|', "|". Use maparg() to save original mapping and restore later instead of just unmap it.