fixed #3: check mode()
fixed #2: check folding
fixed #1: cannot use % of matchit.vim