You are not logged in.

#1 2005-11-06 13:31:48

High|ander
Member
From: Skövde, Sweden
Registered: 2005-10-28
Posts: 188
Website

Gvim and screenshots

Hello, i'm trying to configure gvim but i can't find any good colorscheme.

Can you post a screenshot of your gvim and the config...

Thanks!


When death smiles at you, all you can do is smile back!
Blog

Offline

#2 2005-11-06 14:07:43

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Gvim and screenshots

You can find many in the color scheme scripts section of http://www.vim.org/. Most include screenshots as well.

Offline

#3 2005-11-06 21:28:15

oscar
Member
From: Linköping, Sweden
Registered: 2004-08-13
Posts: 457

Re: Gvim and screenshots

Before I turned to the dark side (emacs smile), I used vim a lot, and the only color scheme that didn't hurt my eyes was desert smile


To err is human... to really foul up requires the root password.

Offline

#4 2005-11-06 22:13:56

corky
Member
From: Norway
Registered: 2004-12-17
Posts: 76

Re: Gvim and screenshots

oscar wrote:

Before I turned to the dark side (emacs smile), I used vim a lot, and the only color scheme that didn't hurt my eyes was desert smile

Another vote for desert here.


mov ah, 0
int 16h

Offline

#5 2005-11-07 06:53:40

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Gvim and screenshots

I too use desert.  I haven't found a color scheme that I like any better than it.  I might eventually take the time to make my own, but haven't had the chance.  For a quick way to compare most of the ones available, check out the Vim Color Scheme Tester

Offline

#6 2005-11-07 16:16:46

High|ander
Member
From: Skövde, Sweden
Registered: 2005-10-28
Posts: 188
Website

Re: Gvim and screenshots

Yes, desert is really a nice theme. The problem with is that it is to "soft". Need som harder colors smile

Going back to console vim instead, putting :set background=dark in the .vimrc made it look alot better!

Thanks for the ansers!


When death smiles at you, all you can do is smile back!
Blog

Offline

#7 2005-11-08 14:19:42

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 552

Re: Gvim and screenshots

A bit buggy, not finished yet, but it models "desert" for the console
in 88(rxvt-unicode) or 256(mrxvt)

" This theme tries to detect your terminals capabilities (color-wise) and tries
" to match gvim's "desert" look as much as possible  - with some slight changes
" Vim color file


" The following section is commented since it schould be placed in .vimrc, IMHO 
"
" detection criterias: You can use these to set t_Co manually in .vimrc
" in case that you terminfo isn't adjusted correctly
" COLORTERM=rxvt-xpm  -> handle more than 8+8 colors
" COLORTERM=rxvt-xpm  && COLORFGBG  -> rxvt-unicode    ->   88 colors
" COLORTERM=rxvt-xpm  && !COLORFGBG -> mrxvt           ->   256 colors

" You can do that by adding the following lines to your .vimrc
" if $COLORTERM =~ 'rxvt-xpm' && $COLORFGBG  != ""
"   set t_Co=88
" elseif $COLORTERM =~ 'rxvt-xpm'
"   set t_Co=256
" else
"   " a fallback for mlterm and other terms
"   set t_Co=16
"   " mlterm needs that
"   "set t_AB=^[[%?%p1%{8}%<%t25;%p1%{40}%+%e5;%p1%{32}%+%;%dm
"   "set t_AF=^[[%?%p1%{8}%<%t22;%p1%{30}%+%e1;%p1%{22}%+%;%dm
" endif


set background=dark
hi clear
if exists("syntax_on")
  syntax reset
endif
let g:colors_name = "tenum"
" define theme for b/w terms only
hi Comment    term=bold
hi Constant   term=underline
hi Special    term=bold
hi Identifier term=underline
hi Statement  term=bold
hi PreProc    term=underline
hi Type       term=underline
hi Function   term=bold
hi Repeat     term=underline
hi Error      term=reverse
hi Todo       term=standout

" colorterm negotiation happens here
"
if &t_Co==88
  hi Normal                     ctermfg=white   ctermbg=NONE
  hi Comment                    ctermfg=43
  hi Constant                   ctermfg=27
  hi Special                    ctermfg=66
  hi Identifier cterm=NONE      ctermfg=45
  hi Statement  cterm=bold      ctermfg=77
  hi PreProc                    ctermfg=48
  hi Type       cterm=bold      ctermfg=57
  hi Function                   ctermfg=57
  hi Repeat     cterm=bold      ctermfg=77
  hi Operator   cterm=bold      ctermfg=77
  hi String                     ctermfg=69
  hi Ignore                     ctermfg=black
  hi Error                      ctermbg=64          ctermfg=White
  hi Todo                       ctermbg=76          ctermfg=Black
elseif &t_Co==256
  hi Normal                     ctermfg=white   ctermbg=NONE
  hi Comment                    ctermfg=44
  hi Constant                   ctermfg=33
  hi Special                    ctermfg=165
  hi Identifier cterm=NONE      ctermfg=46
  hi Statement  cterm=bold      ctermfg=191
  hi PreProc                    ctermfg=88
  hi Type       cterm=bold      ctermfg=143
  hi Function                   ctermfg=143
  hi Repeat     cterm=bold      ctermfg=191
  hi Operator   cterm=bold      ctermfg=191
  hi String                     ctermfg=167
  hi Ignore                     ctermfg=black
  hi Error                      ctermbg=196         ctermfg=White
  hi Todo                       ctermbg=226         ctermfg=Black
endif





" a gui theme
" this is not a complete theme, shows the wrong colors and has errors
" work in progress
hi Normal                     guifg=cyan          guibg=black
hi Comment                    guifg=#80a0ff
hi Constant                   guifg=Magenta
hi Special                    guifg=Red
hi Identifier                 guifg=#40ffff
hi Statement  gui=bold        guifg=#aa4444
hi PreProc                    guifg=#ff80ff
hi Type       gui=bold        guifg=#60ff60
hi Function                   guifg=White
hi Repeat                     guifg=white
hi Operator                   guifg=Red
hi Ignore                     guifg=bg
hi Error                      guifg=White         guibg=Red
hi Todo                       guifg=Blue          guibg=Yellow


" Common groups that link to default highlighting.
" You can specify other highlighting easily.
"hi link String         Constant
hi link Character      Constant
hi link Number         Constant
hi link Boolean        Constant
hi link Float          Number
hi link Conditional    Repeat
hi link Label          Statement
hi link Keyword        Statement
hi link Exception      Statement
hi link Include        PreProc
hi link Define         PreProc
hi link Macro          PreProc
hi link PreCondit      PreProc
hi link StorageClass   Type
hi link Structure      Type
hi link Typedef        Type
hi link Tag            Special
hi link SpecialChar    Special
hi link Delimiter      Special
hi link SpecialComment Special
hi link Debug          Special

you can use this script to adjust the colors to your need by finding
the rightnumber of the color:

" Synopsis:     Vim script for testing the capabilities of 88color terminals
"               like rxvt-unicode
" Author:       Tobias Kieslich <tobias@archlinux.org>
" Source:       Much Code is taken or inspired form the colortest.vim script
" Last Change:  2005 Aug 25
" Instructions: run ":source %" from last line mode

" NONE_0    BOLD_0    NONE_1    BOLD_1    NONE_2    BOLD_2    NONE_3    BOLD_3
" NONE_4    BOLD_4    NONE_5    BOLD_5    NONE_6    BOLD_6    NONE_7    BOLD_7
" NONE_8    BOLD_8    NONE_9    BOLD_9    NONE_10   BOLD_10   NONE_11   BOLD_11
" NONE_12   BOLD_12   NONE_13   BOLD_13   NONE_14   BOLD_14   NONE_15   BOLD_15
" NONE_16   BOLD_16   NONE_17   BOLD_17   NONE_18   BOLD_18   NONE_19   BOLD_19
" NONE_20   BOLD_20   NONE_21   BOLD_21   NONE_22   BOLD_22   NONE_23   BOLD_23
" NONE_24   BOLD_24   NONE_25   BOLD_25   NONE_26   BOLD_26   NONE_27   BOLD_27
" NONE_28   BOLD_28   NONE_29   BOLD_29   NONE_30   BOLD_30   NONE_31   BOLD_31
" NONE_32   BOLD_32   NONE_33   BOLD_33   NONE_34   BOLD_34   NONE_35   BOLD_35
" NONE_36   BOLD_36   NONE_37   BOLD_37   NONE_38   BOLD_38   NONE_39   BOLD_39
" NONE_40   BOLD_40   NONE_41   BOLD_41   NONE_42   BOLD_42   NONE_43   BOLD_43
" NONE_44   BOLD_44   NONE_45   BOLD_45   NONE_46   BOLD_46   NONE_47   BOLD_47
" NONE_48   BOLD_48   NONE_49   BOLD_49   NONE_50   BOLD_50   NONE_51   BOLD_51
" NONE_52   BOLD_52   NONE_53   BOLD_53   NONE_54   BOLD_54   NONE_55   BOLD_55
" NONE_56   BOLD_56   NONE_57   BOLD_57   NONE_58   BOLD_58   NONE_59   BOLD_59
" NONE_60   BOLD_60   NONE_61   BOLD_61   NONE_62   BOLD_62   NONE_63   BOLD_63
" NONE_64   BOLD_64   NONE_65   BOLD_65   NONE_66   BOLD_66   NONE_67   BOLD_67
" NONE_68   BOLD_68   NONE_69   BOLD_69   NONE_70   BOLD_70   NONE_71   BOLD_71
" NONE_72   BOLD_72   NONE_73   BOLD_73   NONE_74   BOLD_74   NONE_75   BOLD_75
" NONE_76   BOLD_76   NONE_77   BOLD_77   NONE_78   BOLD_78   NONE_79   BOLD_79
" NONE_80   BOLD_80   NONE_81   BOLD_81   NONE_82   BOLD_82   NONE_83   BOLD_83
" NONE_84   BOLD_84   NONE_85   BOLD_85   NONE_86   BOLD_86   NONE_87   BOLD_87

syn clear
8
while search("BOLD_", "W") < 31
  let color = substitute(expand("<cword>"), 'BOLD_(d{1,2})', '1', "")
  exec 'hi fett_'.color.' cterm=BOLD ctermfg='.color.' guifg='.color
  exec 'syn keyword fett_'.color.' BOLD_'.color
endwhile
8
while search("NONE_", "W") < 31
  let color = substitute(expand("<cword>"), 'NONE_(d{1,2})', '1', "")
  exec 'hi none_'.color.' cterm=NONE ctermfg='.color.' guifg='.color
  exec 'syn keyword none_'.color.' NONE_'.color
endwhile
nohlsearch

a screenie:
http://www.justdreams.de/archlinux/imag … inally.png

-neri

Offline

Board footer

Powered by FluxBB