Hi Tony,
> After renaming ~/.vimrc, ~/.vim and /usr/local/share/vim/vimfiles to
> ~/.zimrc, ~/.zim and /usr/local/share/vim/zimfiles respectively,
> checking that my ~/.gvimrc is a zero-length file, then invoking Vim
> in bash (in konsole) as
>
> vim -u /usr/local/share/vim/vim73b/vimrc-example.vim
>
> and doing
>
> :help if_lua.txt
>
> I still see the "strange dollar signs", and they don't change the
> highlighting for me.
Ah, I see what you mean now. I have an after/syntax help.vim file in my .vim
that adds three extra highlighting classes:
syn match helpIgnoreBold "#[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+#"
contains=helpMatchBold
syn match helpMatchBold "[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+"
contained
syn match helpIgnoreEmph "@[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+@"
contains=helpMatchEmph
syn match helpMatchEmph "[a-zA-Z0-9&()\`\'\"\-\+\*=\[\]\{\}\.,;: ]\+"
contained
" this match is the same as in CRefVim's help.vim (that is, uses $$):
" the idea is to keep some degree of portability.
syn match helpIgnoreCode
"\$[a-za-z...@\\\*/\._=()\-+%<>&\^|!~\?:,\[\];{}#\`\'\" ]\+\$"
contains=helpMatchCode
syn match helpMatchCode "[a-za-z...@\\\*/\._=()\-+%<>&\^|!~\?:,\[\];{}#\`\'\"
]\+" contained
" syn high links
hi def link helpIgnoreBold Ignore
hi def link helpIgnoreEmph Ignore
hi def link helpIgnoreCode Ignore
hi def link helpMatchBold Function
hi def link helpMatchEmph Special
hi def link helpMatchCode Comment
I've adapted these extensions from CRefVim for luarefvim long time ago, and
ended up taking them for granted.
<snip>
> What type of overhaul? Well, obviously, whatever is necessary to
> display if_lua.txt the way you like it. Or else, that helpfile
> should be rewritten to put it in line with the helpfile writing
> conventions as outlined under ":help help-writing" in the 7.3b help.
I'll rewrite the helpfile to remove the extra unconventional highlights. On
the other hand, having the extra classes could be really useful for language
oriented helpfiles (especially the "code" class.)
Cheers,
Luis
--
Computers are useless. They can only give you answers.
-- Pablo Picasso
--
Luis Carvalho (Kozure)
lua -e 'print((("[email protected]"):gsub("(%u+%.)","")))'
--
You received this message from the "vim_dev" 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