Created
February 19, 2013 01:44
-
-
Save smutch/4982392 to your computer and use it in GitHub Desktop.
viml: matchparentoggle function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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