Mark Woodward wrote:
Hi alex,
On Thu, 2007-03-01 at 16:33 +0100, Alexander Farber wrote:
Hello Hugh,
On 3/1/07, Hugh Sasse <[EMAIL PROTECTED]> wrote:
:scriptnames
1: C:\Documents and Settings\afarber\.vimrc
2: C:\Program Files\Vim\vim70\syntax\syntax.vim
3: C:\Program Files\Vim\vim70\syntax\synload.vim
4: C:\Program Files\Vim\vim70\syntax\syncolor.vim
5: C:\Program Files\Vim\vim70\filetype.vim
6: C:\Program Files\Vim\vim70\menu.vim
7: C:\Program Files\Vim\vim70\autoload\paste.vim
8: C:\Program Files\Vim\vim70\plugin\getscript.vim
9: C:\Program Files\Vim\vim70\plugin\gzip.vim
10: C:\Program Files\Vim\vim70\plugin\matchparen.vim
11: C:\Program Files\Vim\vim70\plugin\netrwPlugin.vim
12: C:\Program Files\Vim\vim70\plugin\rrhelper.vim
13: C:\Program Files\Vim\vim70\plugin\spellfile.vim
14: C:\Program Files\Vim\vim70\plugin\tarPlugin.vim
15: C:\Program Files\Vim\vim70\plugin\tohtml.vim
16: C:\Program Files\Vim\vim70\plugin\vimballPlugin.vim
17: C:\Program Files\Vim\vim70\plugin\zipPlugin.vim
18: C:\Program Files\Vim\vim70\syntax\actionscript.vim
Is this Vim or gVim?
If the later, where's the .gvimrc file?
If the former, putting guifg=... in the .vimrc is meaningless.
If you're using gVim create a .gvimrc file in the same directory as
the .vimrc. Place the guifg=... stuff in there.
What is the output of scriptnames now?
Is the syntax as you'd like it now?
cheers,
It's perfectly possible to run gvim with no gvimrc (it does source the vimrc).
":highlight" commands would sit better in a colorscheme, but regardless of
whether they're in a colorscheme or in the vimrc, it's possible to set both
cterm[bf]g= and gui[bf]g= (and term= if deemed necessary) in the same ":hi"
command.
IIUC, ":syntax on" resets all colors, re-invoking the current colorscheme if
any: thus it's usually less problematic to define colors in a colorscheme.
(When default colors are OK, the corresponding highlight groups can be omitted.)
See (attached) an example colorscheme, which is the one I use for my
day-to-day editing. It may help you design your own. To use this one, drop it
in ~/.vim/colors and add
colorscheme almost-default
to your vimrc.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
79. All of your most erotic dreams have a scrollbar at the right side.
" Vim color file
" Maintainer: Tony Mechelynck <[EMAIL PROTECTED]>
" Last Change: 2006 Sep 06
" ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
" This is almost the default color scheme. It doesn't define the Normal
" highlighting, it uses whatever the colors used to be.
" Only the few highlight groups named below are defined; the rest (most of
" them) are left at their compiled-in default settings.
" Set 'background' back to the default. The value can't always be estimated
" and is then guessed.
hi clear Normal
set bg&
" Remove all existing highlighting and set the defaults.
hi clear
" Load the syntax highlighting defaults, if it's enabled.
if exists("syntax_on")
syntax reset
endif
" Set our own highlighting settings
hi SpecialKey guibg=NONE
hi PyjamaEven ctermbg=grey gui=NONE guibg=#FFD8FF
" white on red is not always distinct in the GUI: use black on red then
hi Error guibg=red
guifg=black
hi clear ErrorMsg
hi link ErrorMsg Error
" show cursor line/column (if enabled) in very light grey in the GUI,
" underlined in the console
if has("gui_running")
hi clear CursorLine
hi CursorLine guibg=#F4F4F4
endif
hi clear CursorColumn
hi link CursorColumn CursorLine
" do not make help bars and stars invisible
hi clear helpBar
hi link helpBar helpHyperTextJump
hi clear helpStar
hi link helpStar helpHyperTextEntry
" the following were forgotten in the syntax/vim.vim (and ended up cleared)
hi clear vimVar
hi link vimVar Identifier
hi clear vimGroupName
hi link vimGroupName vimGroup
hi clear vimHiClear
hi link vimHiClear vimHighlight
" display the status line of the active window in a distinctive color:
" bold black on bright red in the GUI, white on green in the console (where the
bg is
" never bright, and dark red is sometimes an ugly sort of reddish brown).
hi StatusLine gui=NONE,bold guibg=red
guifg=black
\ cterm=NONE,bold ctermbg=green
ctermfg=white
" make the status line bold-reverse (but B&W) for inactive windows
hi StatusLineNC gui=reverse,bold
\ cterm=reverse,bold
" define colors for the tab line:
" file name of unselected tab
hi TabLine gui=NONE guibg=#EEEEEE
guifg=black
\ cterm=NONE,bold ctermbg=lightgrey
ctermfg=white
" file name of selected tab (GUI default is bold black on white)
hi TabLineSel cterm=NONE,bold ctermbg=green
ctermfg=white
" fillup and tab-delete "X" at right
hi TabLineFill gui=NONE,bold guibg=#CCCCCC
guifg=#990000
\ cterm=NONE ctermbg=lightgrey
ctermfg=red
" tab and file number 1:2/3 (meaning "tab 1: window 2 of 3) for selected tab
hi User1 gui=bold guibg=white
guifg=magenta
\ ctermbg=green
ctermfg=black
" tab and file number 1:2/3 for unselected tab
hi User2 guibg=#EEEEEE
guifg=magenta
\ ctermbg=lightgrey
ctermfg=black
" additional override for manpages à la Dr. Chip
hi manSubSectionStart guibg=white
guifg=yellow
\ ctermbg=black
ctermfg=darkblue
" remember the current colorscheme name
let colors_name = "almost-default"
" vim: sw=2