Adam Gray wrote:
So basically I have the following in my .vimrc

set listchars=tab:>-,trail:-,eol:$

But it's slightly intrusive in the colour it is at the moment (dark
blue), and I was wondering if there was any easy way to set it to
something less overt, for example dark grey (I use a dark background).

Thanks!

Adam

        :hi NonText ctermfg=darkgrey guifg=darkgrey
        :hi clear SpecialKey
        :hi link SpecialKey NonText

You may place them in your vimrc, or (maybe better) in a newly-created colourscheme: start with whatever colourscheme you're already using, copy it under a different name (but keeping the .vim extension) to ~/vimfiles/colors (on Windows) or to ~/.vim/colors (on Unix), then add the above lines. If you aren't using any colorscheme yet, you can use the folowing as a source of inspiration, change it to your heart's delight (and see ":help :colorscheme" about how to invoke it):

----- 8< ----- ~/.vim/colors/almost-default.vim
" Vim color file
" Maintainer:      Tony Mechelynck <[EMAIL PROTECTED]>
" Last Change:     2006 Aug 16
" ÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷÷
" 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 Error                                guibg=red       guifg=black
hi clear ErrorMsg
hi link  ErrorMsg       Error
hi CursorLine                           guibg=#F4F4F4
hi clear CursorColumn
hi link  CursorColumn   CursorLine
hi clear helpBar
hi link  helpBar        helpHyperTextJump
hi clear helpStar
hi link  helpStar       helpHyperTextEntry
hi StatusLine           gui=NONE,bold   guibg=red       guifg=white
hi StatusLineNC         gui=reverse,bold
hi TabLine              gui=NONE        guibg=#DDDDDD   guifg=black
hi TabLineFill          gui=NONE        guibg=#AAAAAA   guifg=red
hi User1        ctermfg=magenta         guibg=white     guifg=magenta
hi User2        ctermfg=darkmagenta     guibg=#DDDDDD   guifg=magenta

" remember the current colorscheme name
let colors_name = "almost-default"

" vim: sw=2
----- >8 -----


Best regards,
Tony.

Reply via email to