On 12/10/2012 02:21 AM, Alex Efros wrote:
Hi!
>
> I've implemented conceal support for asciidoc.
>
> This is Vim feature which let you hide some symbols while they ain't
> needed. For example, instead of seeing *BOLD* in your text highlighted
> by some color you'll see just BOLD - still highlighted by same color
> but without *…* around it. When you'll enter INSERT/REPLACE mode to
> edit text you'll see *BOLD* with markers again - when your cursor will
> be in line with this text.
>
> Also I've added some minor fixes/features to syntax highlight:
> - highlight line breaks (+ at EOL) in lists
> - highlight *…* _…_ `…` etc delimiters as SpecialChar instead of same
> color as used for their content
> - fix highlight for joined markup like _underline_`mono`
> (this fix is incomplete, some joined markup isn't understood by asciidoc,
> more work needed to make highlight work exactly in same way as asciidoc)
> - fix highlight when first symbol in markup is open paren )
> - conceal escaping in arrows (to prevent default replacement by unicode
> arrows)
>
>
>
> To use it you'll need two files, both named asciidoc.vim. Because of same
> name I decide to attach larger one and include in email text second file.
>
> 1) Save attached file to ~/.vim/after/syntax/asciidoc.vim
>
> 2) Save these lines to ~/.vim/ftplugin/asciidoc.vim :
>
> ---cut---
> if exists("b:did_ftplugin")
> finish
> endif
> let b:did_ftplugin = 1
>
> if has("conceal")
> setlocal conceallevel=2 concealcursor=nc
> endif
>
> let b:undo_ftplugin = 'setlocal conceallevel< concealcursor<'
> \ . '|unlet b:did_ftplugin'
> ---cut---
>

how about considering to merge the work also into this one?
https://github.com/dagwieers/asciidoc-vim

per my previous tests it support more intensive syntax than the
'officical' one.
the only issue is, if the file is real large (say, more than 1M ), it
will become really slow.


--
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to