Skip to content

Instantly share code, notes, and snippets.

@lwhsu
Created June 11, 2012 16:58
Show Gist options
  • Save lwhsu/2911277 to your computer and use it in GitHub Desktop.
Save lwhsu/2911277 to your computer and use it in GitHub Desktop.
inoremap ( ()<Left>
inoremap ) )<Esc>
\y2l
\:if '))'=="<C-R>=escape(@0,'"\')<CR>"<BAR>
\ exec 'normal x'<BAR>
\endif<CR>
\a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment