On 5/10/2011 8:35 AM, Raghavendra D Prabhu wrote:
Hi,
     I have been looking for ways in which comments can be concealed and
this behavior toggled when required. I am thinking of doing this with something like
     =============================
      syntax match matchComment "\v^\s*#.*"  conceal cchar=||
      hi! link matchComment Comment
      =====================================

      and using conceallevel accordingly.

      However, I need this to be generic in that I don't need to hardcode
      the matchComment, instead it conceals the comment character based
      on the filetype of the file in current buffer. So is there a
      simpler way to do this (or a plugin already existing) ?
You can parse the &comments setting and pull out the strings in Vim script and create your conceal statement on the fly.

Dave

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to