Skip to content

Instantly share code, notes, and snippets.

@smutch
Created February 19, 2013 01:44
Show Gist options
  • Save smutch/4982392 to your computer and use it in GitHub Desktop.
Save smutch/4982392 to your computer and use it in GitHub Desktop.
viml: matchparentoggle function
function! MatchParenToggle()
if g:loaded_matchparen==1
execute 'NoMatchParen'
let g:loaded_matchparen=0
else
execute 'DoMatchParen'
let g:loaded_matchparen=1
endif
endfun
map <leader>mp :call MatchParenToggle()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment