Change color scheme?
For convenient color scheme rotation see in vim tips the tip # 955.
Based on this I've added following to my .vimrc:
function! SetNextColor(forward)
if exists('g:colors_name')
let colstr = 'default elflord peachpuff desert256 breeze morning'
let colstr .= ' darkblue gothic aqua earth black_angus relaxedgreen'
let colstr .= ' darkblack freya motus impact less chocolateliquor'
let missing = []
let colors = split(colstr)
let current = index(colors, g:colors_name)
for i in range(len(colors))
let current += (a:forward ? 1 : -1)
if !(0 <= current && current < len(colors))
let current = (a:forward ? 0 : len(colors)-1)
endif
try
execute 'colorscheme '.colors[current]
break
catch /E185:/
call add(missing, colors[current])
endtry
endfor
redraw
if len(missing) > 0
echo 'Error: colorscheme not found:' join(missing)
endif
echo g:colors_name
endif
endfunction
nnoremap <F7> :call SetNextColor(1)<CR>
nnoremap <S-F7> :call SetNextColor(0)<CR>
HTH,
Yosi
On Wed, Nov 19, 2008 at 6:46 PM, Roberto Miura Honji
<[EMAIL PROTECTED]> wrote:
> You can choose a color,
> see the possibles in: help ctermbg
>
> 2008/11/19 Jürgen Krämer <[EMAIL PROTECTED]>
>>
>>
>> Hi,
>>
>> Ajay Jain wrote:
>> >
>> > When I use the 'v' key and select a few lines, the color of the
>> > selection is so light grey, that I fail to see what has been selected.
>> > Could you tell me how to solve the issue?
>>
>> execute this command
>>
>> highlight Visual ctermbg=DarkGray guibg=DarkGray
>>
>> after you have selected you color scheme.
>>
>> jkr
>>
>> --
>> Sometimes I think the surest sign that intelligent life exists elsewhere
>> in the universe is that none of it has tried to contact us. (Calvin)
>>
>>
>
>
>
> --
> ----------------------------------------------
> Roberto Miura Honji
> LAS - Laboratório de Administração e Segurança de Sistemas
> Engenharia de Computação - 2006
> Instituto de Computação - UNICAMP
>
> email: [EMAIL PROTECTED] (principal)
> email: [EMAIL PROTECTED]
> msn: [EMAIL PROTECTED]
> -------------------------------------------
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---