Valloric/MatchTagAlways

Error detected while processing /usr/share/vim/vimfiles/plugin/MatchTagAlways.vim & ~/.vimrc

phongvcao opened this issue · 1 comments

Hi Valloric,

I am currently using MatchTagAlways with Vim on Fedora 20 and it seems that the backlashes "" that are used to break the lines in MatchTagAlways.vim and ~/.vimrc are not recognized by Vim 7.4 on Fedora anymore. On Windows everything works perfectly. Here is the error console for MatchTagsAlways.vim:

[phongvcao@localhost ~]$ vim
Error detected while processing /usr/share/vim/vimfiles/plugin/MatchTagAlways.vim:
line 25:
E10: \ should be followed by /, ? or &
line 26:
E10: \ should be followed by /, ? or &
line 30:
E15: Invalid expression:
E15: Invalid expression:
line 31:
E10: \ should be followed by /, ? or &
line 32:
E10: \ should be followed by /, ? or &
line 33:
E10: \ should be followed by /, ? or &
line 34:
E10: \ should be followed by /, ? or &
line 35:
E10: \ should be followed by /, ? or &
line 36:
E10: \ should be followed by /, ? or &
line 37:
E10: \ should be followed by /, ? or &
line 39:
E15: Invalid expression:
E15: Invalid expression:
line 40:
E10: \ should be followed by /, ? or &
line 41:
E15: Invalid expression:
E15: Invalid expression:
line 42:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue

To fix this, I had to eliminate all the "" character from ~/.vimrc and MatchTagAlways.vim. For example I had to use this:
let g:mta_filetypes = { 'html' : 1, 'xhtml' : 1, 'xml' : 1, 'jinja' : 1, 'php' : 1, }

instead of:
let g:mta_filetypes = {
\ 'html' : 1,
\ 'xhtml' : 1,
\ 'xml' : 1,
\ 'jinja' : 1,
}

So just a small note to you that you should eliminate all the "" in MatchTagAlways' source code and tutorial so that new users won't get this kind of error message.

Thank you Valloric for writing such a great plugin. I found out MatchTagAlways from StackOverflow.

Have a great day buddy!

Best regards,

Phong Cao,

Hi,

Using Vundle on Fedora fix this issue. You should mark "Using Vundle or Pathogen" as a Requirement for this plugin to work.

Thank you for such a great Plugin!