Select 'v' Issue

0 views
Skip to first unread message

Ajay Jain

unread,
Nov 19, 2008, 4:30:43 AM11/19/08
to vim...@googlegroups.com
Hi,

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?

Regards,
Ajay.

Jürgen Krämer

unread,
Nov 19, 2008, 5:34:46 AM11/19/08
to vim...@googlegroups.com

Hi,

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

unread,
Nov 19, 2008, 11:46:45 AM11/19/08
to vim...@googlegroups.com
You can choose a color,
see the possibles in: help ctermbg

2008/11/19 Jürgen Krämer <jott...@googlemail.com>



--
----------------------------------------------
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: miura...@gmail.com (principal)
email: ra06...@students.ic.unicamp.br
msn:   miura...@msn.com
-------------------------------------------

yosi izaq

unread,
Nov 23, 2008, 8:29:44 AM11/23/08
to vim...@googlegroups.com
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

Tim Chase

unread,
Nov 23, 2008, 8:45:35 AM11/23/08
to vim...@googlegroups.com
> Change color scheme?
>
> For convenient color scheme rotation see in vim tips the tip # 955.

For a color-scheme switcher that doesn't require hard-coding a
list of colorschemes, this thread[1] offers my solution to the
problem a while back.

-tim

[1] http://markmail.org/message/dlgi24towv2snfpr

John Beckett

unread,
Nov 23, 2008, 7:01:41 PM11/23/08
to vim...@googlegroups.com
yosi izaq wrote:
> For convenient color scheme rotation see in
> vim tips the tip # 955.

As I've noted in the above tip, I have put all the color scheme rotation code in a
somewhat enhanced version at tip 341 (and will soon delete what's on 955):
http://vim.wikia.com/wiki/Switch_color_schemes

The enhanced version includes the point that Tim mentioned, namely the ability to
rotate among all the installed color schemes (without needing a built-in list).
However, the idea of building in a list of color scheme names was for those people
who wanted to rotate among a selected few schemes.

John

Reply all
Reply to author
Forward
0 new messages