# Try this: ( for both conceal and fold )
:syn region hideAfootnote matchgroup=hideAfootnote start="\\afootnote{"
end="}\|%stopzone\>" conceal cchar=~ fold
## Snapshots:
Another option is to hide this text using defined `Ignore` syntax highlight
:hi def link hideAfootnote Ignore
About the issues you mentioned, I am not sure. you may define your own syntax
highlight for Conceal
: hi Conceal guibg=White guifg=DarkMagenta
On Dec 27, 2011, at 6:17 PM, Suresh Govindachar wrote:
>
> Some progress since the original post: To hide a certain string, I created
> the following syntax region:
>
> syn region conceal start="\\afootnote" end="}"
>
> then split the buffer and did
>
> :set conceallevel=3
>
> in one of the split windows.
>
> The correct strings are being identified.
>
> However, there are issues:
>
> 1) The strings are highlighted with white color in both windows -- I have
> verified the conceallevel via ":verbose set conceallevel?".
>
> 2) My background is black -- so the highlight should be black and not white.
>
> --Suresh
>
>
> --
> 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
--
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
<<inline: (VIM) (cai-zhao-2.umelst.maine.edu) (~_.vim_bundle_open-browser.vim)-2.png>>
<<inline: (VIM) (cai-zhao-2.umelst.maine.edu) (~_.vim_bundle_open-browser.vim)-1.jpg>>
