Re: .vimrc
smells like there should be a newbieDoc in this somewhere...
On Wed, Jun 06, 2001 at 12:17:27PM -0700, Mike Pfleger wrote:
> I followed the thread about setting tabs in vim, and I have a question
> regarding the syntax highlighting option. How is the color mapping
> determined? I find the blue to be horrid in my (black background)
> xterms. Addtionally, since mutt runs in a xterm window, and uses vim
> to compose mail, it has that horrid blue hightlighting some lines of
> text in a reply mail.
>
> Is there a way to change this? I have put that line:
> set background=dark
> -within the:
> if has("syntax")
> -section, but it has no effect.
to answer your last question,
yes.
--
to satisfy your curiosity further:
just to be sure, try
$ apt-get install vim-rt
then you can have your own ~/.muttrc color-designator specs,
including something like
set editor="vim -c 'set ft=mail tw=64'"
# COLORS
# thanks to flubber@xmission.com
color hdrdefault brightgreen black
color header brightyellow black "^from:"
mono header bold "^from:"
color header brightyellow black "^subject:"
mono header bold "^subject:"
color header brightcyan black "^to:"
color header brightcyan black "^date:"
color header brightcyan black "^x-mailer:"
color quoted white black
color signature brightgreen black
color indicator brightblue brightgreen
color error brightred black
mono error bold
color status brightgreen brightblue
color tree brightmagenta black
color tilde brightmagenta black
color body brightyellow black (((ht|f)tps?)|mailto):(//)?[^\ "\t]*|www\.[-a-z0-9.]+)[^\ .,;\t>">]
mono body bold (((ht|f)tps?)|mailto):(//)?[^\ "\t]*|www\.[-a-z0-9.]+)[^\ .,;\t>">]
color body brightwhite black "[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "[-a-z_0-9.]+@[-a-z_0-9.]+"
color body brightyellow black "^Good signature"
mono body bold "^Good signature"
color body brightwhite red "^Bad signature from.*"
mono body bold "^Bad signature from.*"
color index green default "~d >2m" # old messages
color index green black "~d >6m" # really old messages
color index default black "~Q" # replied-to
color index yellow default "~P" # from me
color index brightyellow default "~p" # to me
color index brightwhite default "~F" # [!] flagged
and in your ~/.vimrc, try something like
set background=dark
" use my personal syntax file
let mysyntaxfile = "~/.syntax.vim"
syntax on
which links to a corresponding ~/.syntax.vim looking like
" There are two sets of defaults: for a dark and a light background.
if &background == "dark"
hi Comment term=bold ctermfg=DarkGreen guifg=#80a0ff
hi Constant term=underline ctermfg=Yellow guifg=#ffa0a0
hi Special term=bold ctermfg=LightRed guifg=Orange
hi Identifier term=underline ctermfg=DarkCyan guifg=#40ffff
hi Statement term=bold ctermfg=LightRed guifg=#ffff60 gui=bold
" hi PreProc term=underline ctermfg=LightBlue guifg=#ff80ff
" hi Type term=underline ctermfg=LightGreen guifg=#60ff60 gui=bold
" hi Ignore ctermfg=black guifg=bg
else
" hi Comment term=bold ctermfg=DarkBlue guifg=Blue
" hi Constant term=underline ctermfg=DarkRed guifg=Magenta
" hi Special term=bold ctermfg=DarkMagenta guifg=SlateBlue
" hi Identifier term=underline ctermfg=DarkCyan guifg=DarkCyan
" hi Statement term=bold ctermfg=Brown guifg=Brown gui=bold
" hi PreProc term=underline ctermfg=DarkMagenta guifg=Purple
" hi Type term=underline ctermfg=DarkGreen guifg=SeaGreen gui=bold
" hi Ignore ctermfg=white guifg=bg
endif
" vim: ts=19 sts=0
(that final line tells vim to set tabs for cleaner display, which
wouldn't be needed if i used fifty gazillion spaces instead of
itty bitty ol' tabs. this is a religious issue, beware.)
if you're hungry for more, there's lots. try
$ locate syntax.vim
$ locate mail.vim
$ lynx /usr/share/doc/mutt/html/manual.html
$ lynx http://www.mutt.org/
--
DEBIAN NEWBIE TIP #8 from Will Trillich <will@serensoft.com>
:
Search for Debian PACKAGES online with this shortcut:
http://packages.debian.org/<packagename>
If you can't find it right off, just hop to the "search packages"
link that's offered there.
Also see http://newbieDoc.sourceForge.net/ ...
Reply to:
- References:
- .vimrc
- From: Mike Pfleger <pfleger@pfleger-precision.com>