Hi!
On Mon, Feb 02, 2015 at 04:08:08PM +0100, Dag Wieers wrote:
> When I started my AsciiDoc vim syntax file it did a few things that were not
> in the one that shipped with AsciiDoc. Like using old for actual *bold*
> etc... Different colors for document title and other titles.
If you talking about visual representation by using real bold/italic fonts
instead of just changing colors for same font - all this is can and should
be configured in different place.
Vim syntax file's work is only detect different syntax elements, to let
you customize their look and feel yourself. It actually does set some
defaults for this, but this is just to make it looks better out-of-box.
To do this it's better to define your own color scheme, just to avoid
adding a lot of highlighting commands into ~/.vimrc and make it easier to
switch color scheme if needed. So, add into ~/.vimrc just one line:
colorscheme dag
and then add look&feel setup you like into ~/.vim/colors/dag.vim:
set background=dark
hi clear
if exists("syntax_on")
syntax reset
endif
let colors_name = "dag"
hi asciidocQuotedEmphasized cterm=italic
hi asciidocQuotedEmphasized2 cterm=italic
if &t_Co > 8
""" we can use more colors!
hi asciidocQuotedBold ctermfg=213 ctermbg=8 cterm=bold
endif
> That said, if this is all different/improved now, I don't mind removing my
> repository and switch over. Surely, the official one works better than
> something from years ago ;-)
A lot was improved over last years, but, of course, your version may have
fixes this isn't in official repo yet - send pull request then. :)
> PS Is there a relation with the one that ships with vim now ? Can we get
> that one updated as well ?
As soon as current developers will decide how and where vim syntax file
should live (most likely in separate repo), create that repo and decide
who will support it - that person should bother to update the one that
ships with vim now.
--
WBR, Alex.
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.