Tuesday, January 17, 2012

Re: What did I do?

On Jan 16, 2012, at 10:04 PM, Vlad Irnov wrote:
>
> On Jan 16, 4:27 pm, Eric Weir <eew...@bellsouth.net> wrote:
>>
>> I misspoke. Yes, I do use v and V--frequently! What puzzles me in this case is that the changes took place over an extended block of text. As I write I can see how that would have happened. Most of what was changed was in folds. If I selected the folds I would've selected everything in the fold.
>
> It's easy to make such mistake if selected text in Visual mode does
> not stand out and looks similar to Folded lines. Then you may not
> notice that you are in Visual mode. This is unfortunately a problem
> with many Vim color schemes, including the default one for GUI. They
> use the same or similar background color for selected text (Visual),
> folded lines (Folded), and current line/column (CursorLine,
> CursorColumn) highlight groups. I recommend setting background color
> for Visual selection to some bright, garish color that is different
> from all other highlightings. Something like CadetBlue2 or cyan. Then
> you will always know when you are in Visual mode. If you use default
> GUI colorscheme, try putting this in your .vimrc:
> hi Visual gui=NONE guifg=NONE guibg=CadetBlue2

Thanks, Vlad. I like the suggestion. I'm not sure which color scheme I'm using. Whatever it is, I know I've tweaked it a little. I use MacVim, and my scheme is probably one of the ones that come with it. I'll check it out and the check out the code you suggest.

Thanks,
------------------------------------------------------------------------------------------
Eric Weir
1111 Clairemont Avenue J3 ~ Decatur, GA 30030
404-636-6142 ~ eeweir@bellsouth.net

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: