On 16.04.25 16:48, Steven H. wrote:

> P.S. In case it is not clear (as I didn't say that explicitly), my

> question is about VIM.

It was eminently evident. My reply included "vi/vim, mutt, etc.", intending to

make the point that setting bg/fg colours in the terminal provides consistency

across apps. (I'm too lazy to want to find ways to do it individually in each.)

On 16.04.25 16:46, Steven H. wrote:

> On Wed, 16 Apr 2025 09:10:05 +0000 dvalin via vim_use wrote:

>

> > There's 754 colours in my /etc/X11/rgb.txt, but 782 in

> > /usr/share/vim/vim81/rgb.txt , maybe more in a more current version.

>

> Here:

> find /usr/share/vim/ -name 'rgb.txt'

> shows me nothing.

>

> > And I guess you could add your own, if needed.

> > But I change the cursor colour in vim, using its limited palette, to

> > differentiate insert vs normal mode at the cursor, not just the status line.

Here,

$ locate rgb.txt

also shows:

/etc/X11/rgb.txt

/usr/share/X11/rgb.txt

They're the system version - all that's needed. I see there:

222 222 222       gray87

222 222 222       grey87

so: xterm -bg grey87

should do the trick, without further ado.

> > "MODE-INDICATING TRICOLOUR CURSOR:

> > "Appearance: (Insert_Mode = Red, Replace Mode = Purple, Normal_Mode = Green)

> >

> > if &term =~ "xterm"

> > let &t_SI = "\<Esc>]12;red\x7"

> > let &t_SR = "\<Esc>]12;purple\x7"

> > let &t_EI = "\<Esc>]12;green\x7"

> > endif

>

> where do I type this? And how does it affect the color of tab indents?

>

> I hope you can clarify. I am not an expert.

> FWIW, I am using desert colorscheme.

It goes into your ~/.vimrc

and has no observable effect on tabs.

To distinguish tabs from spaces, e.g. in makefiles, I place the modeline:

# vim:noexpandtab list

in the file. The desired representation for tabs and trailing whitespace

is set by:

set listchars=tab:>-,trail:-

also in ~/.vimrc

Vim's "help listchars" provides more options there than any one person

could find a use for, I think.

Hope that helps set the required appearance. If you use vim for

everything, then it's important to have restful colours, as you're

setting up.

Apropos "desert" I notice in rgb.txt :

244 164  96    sandy brown

244 164  96    SandyBrown

The closest to desert that I've used is a less glaring background for my

preferred pdf viewer:

/usr/bin/xpdf -geometry 1200x900+5+0 -z width -papercolor wheat3 $fn &

(I've put that in a shell function which first converts spaces in the

filename to '_', as xpdf borks on that. But that's not directly relevant

here.)

Erik

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_use/96c42a8d-0460-4186-a1f8-ff88ea850956%40localhost.

Reply via email to