Loading ...
Sorry, an error occurred while loading the content.

Re: matchit.vim in c/c++

Expand Messages
  • drchip@campbellfamily.biz
    ... Hello! I have, in ftplugin/c/c.vim: Custom Matchit Support: {{{1 let b:match_words= %( : : ,
    Message 1 of 2 , Mar 30, 2005
    • 0 Attachment
      Quoting Denis Perelyubskiy <lists@...>:


      > Before I go around defining match_words for matchit.vim (c/c++ syntax,
      > for things like switch/case/break; while/break/continue, etc) I wanted
      > to check if someone's already done this.
      >
      > Does anyone have a working config for using matchit.vim with c/c++?

      Hello!

      I have, in ftplugin/c/c.vim:

      " Custom Matchit Support: {{{1
      let b:match_words=
      \ '\%(\<else\s\+\)\@<!\<if\>:\<else\s\+if\>:\<else\%(\s\+if\)\@!\>,' .
      \ '\<switch\>:\<case\>:\<default\>'

      Regards,
      Chip Campbell
    Your message has been successfully submitted and would be delivered to recipients shortly.