Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #223862 > unrolled thread
| Started by | Lucio <lucio@sulweb.org> |
|---|---|
| First post | 2020-06-22 09:50 +0200 |
| Last post | 2020-06-22 10:50 +0200 |
| Articles | 13 — 8 participants |
Back to article view | Back to linux.debian.user
Default vim colorscheme? Lucio <lucio@sulweb.org> - 2020-06-22 09:50 +0200
Re: Default vim colorscheme? elvis <elvis@dogonfire.com> - 2020-06-22 10:10 +0200
Re: Default vim colorscheme? Lucio <lucio@sulweb.org> - 2020-06-22 11:00 +0200
Re: Default vim colorscheme? Liam O'Toole <liam.p.otoole@gmail.com> - 2020-06-22 13:30 +0200
Re: Default vim colorscheme? Lucio <lucio@sulweb.org> - 2020-06-22 14:00 +0200
Re: Default vim colorscheme? Jim Popovitch <jim@k4vqc.com> - 2020-06-22 15:40 +0200
Re: Default vim colorscheme? Liam O'Toole <liam.p.otoole@gmail.com> - 2020-06-22 16:30 +0200
Re: Default vim colorscheme? Jonathan Dowland <jon+debian-user@dow.land> - 2020-06-22 17:20 +0200
Re: Default vim colorscheme? Lucio <lucio@sulweb.org> - 2020-06-22 23:00 +0200
Re: Default vim colorscheme? elvis <elvis@dogonfire.com> - 2020-06-22 13:40 +0200
Re: Default vim colorscheme? David Wright <deblis@lionunicorn.co.uk> - 2020-06-22 16:00 +0200
Re: Default vim colorscheme? mick crane <mick.crane@gmail.com> - 2020-06-22 10:40 +0200
Re: Default vim colorscheme? l0f4r0@tuta.io - 2020-06-22 10:50 +0200
| From | Lucio <lucio@sulweb.org> |
|---|---|
| Date | 2020-06-22 09:50 +0200 |
| Subject | Default vim colorscheme? |
| Message-ID | <Akpnj-74b-1@gated-at.bofh.it> |
I posted this question @superuser [1] two days ago, but it seems few
know Debian enough there, so here it is for you.
In every Linux system I install or I happen to log into I want to use
the same vim colorscheme, e.g. the default one Debian uses, because I
usually use Debian and I like the default colorscheme. What's its name?
I need the name to specify it in the `$HOME/.vimrc` file of other systems:
colorscheme whatever
The problem is that even `default` is not the correct name in Debian, in
fact if I open a file in one of my Debian systems without a
`$HOME/.vimrc` file (so no `colorscheme` command at all), I get this:
https://i.stack.imgur.com/5hrCd.png
then, while I'm inside `vim`, I type the `:colorscheme` command, and it
replies `default`. However if I create a `$HOME/.vimrc` file with
`colorscheme default` in it, in the same Debian system, and then I open
the same file, I get this instead:
https://i.stack.imgur.com/W2rFU.png
I want the first colorscheme in every other `vim` I use, but I have no
clue about how to specify it.
[1]: https://superuser.com/questions/1562159/
[toc] | [next] | [standalone]
| From | elvis <elvis@dogonfire.com> |
|---|---|
| Date | 2020-06-22 10:10 +0200 |
| Message-ID | <AkpGG-7qi-5@gated-at.bofh.it> |
| In reply to | #223862 |
On 22/6/20 5:36 pm, Lucio wrote: > I posted this question @superuser [1] two days ago, but it seems few > know Debian enough there, so here it is for you. > > In every Linux system I install or I happen to log into I want to use > the same vim colorscheme, e.g. the default one Debian uses, because I > usually use Debian and I like the default colorscheme. What's its > name? I need the name to specify it in the `$HOME/.vimrc` file of > other systems: > > colorscheme whatever > > The problem is that even `default` is not the correct name in Debian, > in fact if I open a file in one of my Debian systems without a > `$HOME/.vimrc` file (so no `colorscheme` command at all), I get this: > > https://i.stack.imgur.com/5hrCd.png > > then, while I'm inside `vim`, I type the `:colorscheme` command, and > it replies `default`. However if I create a `$HOME/.vimrc` file with > `colorscheme default` in it, in the same Debian system, and then I > open the same file, I get this instead: > > https://i.stack.imgur.com/W2rFU.png > > I want the first colorscheme in every other `vim` I use, but I have no > clue about how to specify it. > > > [1]: https://superuser.com/questions/1562159/ > Somewhere on your system maybe /usr/share/vim or in /etc that default colour scheme is defined or linked to a real colour scheme. Find it. Name it something meaningful to you. And then use it on all your systems. Or copy the parts out of it into a .vimrc -- Censorship: The reaction of the ignorant to freedom.
[toc] | [prev] | [next] | [standalone]
| From | Lucio <lucio@sulweb.org> |
|---|---|
| Date | 2020-06-22 11:00 +0200 |
| Message-ID | <Akqt3-7GV-3@gated-at.bofh.it> |
| In reply to | #223863 |
Il 22/06/20 10:05, elvis ha scritto: > Somewhere on your system maybe /usr/share/vim or in /etc that default > colour scheme is defined or linked to a real colour scheme. Find it. I couldn't find the link, but I found /usr/share/vim/vim81/colors directory, that contains only 19 colorschemes: not that hard to bruteforce after all. I've tried all of them one after the other and I finally found "ron" to be the real default one, despite "colorscheme default" not loading "ron"... Why "colorscheme default" doesn't load the real default, or why the real default goes by the name of "ron" and "default" is a non-default choice, is beyond me: maybe Debian exhausted the symlinks pool, so renaming the "default" file as "classic" or something and symlinking "default" to "ron" would have broken the whole system, but it doesn't really matter anymore... problem solved, thanks for your help.
[toc] | [prev] | [next] | [standalone]
| From | Liam O'Toole <liam.p.otoole@gmail.com> |
|---|---|
| Date | 2020-06-22 13:30 +0200 |
| Message-ID | <AksOd-Mk-3@gated-at.bofh.it> |
| In reply to | #223867 |
On Mon, 22 Jun, 2020 at 10:53:46 +0200, Lucio wrote: > Il 22/06/20 10:05, elvis ha scritto: > > Somewhere on your system maybe /usr/share/vim or in /etc that default > > colour scheme is defined or linked to a real colour scheme. Find it. > > I couldn't find the link, but I found /usr/share/vim/vim81/colors directory, > that contains only 19 colorschemes: not that hard to bruteforce after all. > I've tried all of them one after the other and I finally found "ron" to be > the real default one, despite "colorscheme default" not loading "ron"... > > Why "colorscheme default" doesn't load the real default, or why the real > default goes by the name of "ron" and "default" is a non-default choice, is > beyond me: maybe Debian exhausted the symlinks pool, so renaming the > "default" file as "classic" or something and symlinking "default" to "ron" > would have broken the whole system, but it doesn't really matter anymore... > problem solved, thanks for your help. > I think what happened is that when you set the default colour scheme interactively a light background was assumed. That's why you get less contrast in your second screenshot. If you subsequently do ':set bg=dark' it should look like the first screenshot.
[toc] | [prev] | [next] | [standalone]
| From | Lucio <lucio@sulweb.org> |
|---|---|
| Date | 2020-06-22 14:00 +0200 |
| Message-ID | <Akthg-Wa-1@gated-at.bofh.it> |
| In reply to | #223871 |
Il 22/06/20 13:22, Liam O'Toole ha scritto: > I think what happened is that when you set the default colour scheme > interactively a light background was assumed. That's why you get less > contrast in your second screenshot. If you subsequently do ':set > bg=dark' it should look like the first screenshot. I'm not sure that's what actually happens: I thought the same on a first glance, but then I noticed one color was completely different, e.g. look at $DESTDIR and similar items.
[toc] | [prev] | [next] | [standalone]
| From | Jim Popovitch <jim@k4vqc.com> |
|---|---|
| Date | 2020-06-22 15:40 +0200 |
| Message-ID | <AkuQ2-1XS-5@gated-at.bofh.it> |
| In reply to | #223871 |
On Mon, 2020-06-22 at 12:22 +0100, Liam O'Toole wrote: > On Mon, 22 Jun, 2020 at 10:53:46 +0200, Lucio wrote: > > Il 22/06/20 10:05, elvis ha scritto: > > > Somewhere on your system maybe /usr/share/vim or in /etc that default > > > colour scheme is defined or linked to a real colour scheme. Find it. > > > > I couldn't find the link, but I found /usr/share/vim/vim81/colors directory, > > that contains only 19 colorschemes: not that hard to bruteforce after all. > > I've tried all of them one after the other and I finally found "ron" to be > > the real default one, despite "colorscheme default" not loading "ron"... > > > > Why "colorscheme default" doesn't load the real default, or why the real > > default goes by the name of "ron" and "default" is a non-default choice, is > > beyond me: maybe Debian exhausted the symlinks pool, so renaming the > > "default" file as "classic" or something and symlinking "default" to "ron" > > would have broken the whole system, but it doesn't really matter anymore... > > problem solved, thanks for your help. > > > > I think what happened is that when you set the default colour scheme > interactively a light background was assumed. That's why you get less > contrast in your second screenshot. If you subsequently do ':set > bg=dark' it should look like the first screenshot. Hmmmm, I (Debian Buster) ran bg=dark, and then 'colorscheme ron' and now I have no colors. er, Thanks! -Jim P.
[toc] | [prev] | [next] | [standalone]
| From | Liam O'Toole <liam.p.otoole@gmail.com> |
|---|---|
| Date | 2020-06-22 16:30 +0200 |
| Message-ID | <AkvCp-2u0-3@gated-at.bofh.it> |
| In reply to | #223880 |
On Mon, 22 Jun, 2020 at 09:35:45 -0400, Jim Popovitch wrote: > On Mon, 2020-06-22 at 12:22 +0100, Liam O'Toole wrote: > > On Mon, 22 Jun, 2020 at 10:53:46 +0200, Lucio wrote: > > > Il 22/06/20 10:05, elvis ha scritto: > > > > Somewhere on your system maybe /usr/share/vim or in /etc that default > > > > colour scheme is defined or linked to a real colour scheme. Find it. > > > > > > I couldn't find the link, but I found /usr/share/vim/vim81/colors directory, > > > that contains only 19 colorschemes: not that hard to bruteforce after all. > > > I've tried all of them one after the other and I finally found "ron" to be > > > the real default one, despite "colorscheme default" not loading "ron"... > > > > > > Why "colorscheme default" doesn't load the real default, or why the real > > > default goes by the name of "ron" and "default" is a non-default choice, is > > > beyond me: maybe Debian exhausted the symlinks pool, so renaming the > > > "default" file as "classic" or something and symlinking "default" to "ron" > > > would have broken the whole system, but it doesn't really matter anymore... > > > problem solved, thanks for your help. > > > > > > > I think what happened is that when you set the default colour scheme > > interactively a light background was assumed. That's why you get less > > contrast in your second screenshot. If you subsequently do ':set > > bg=dark' it should look like the first screenshot. > > Hmmmm, I (Debian Buster) ran bg=dark, and then 'colorscheme ron' and now > I have no colors. er, Thanks! > Also on buster. I don't see the behaviour you describe. Very odd.
[toc] | [prev] | [next] | [standalone]
| From | Jonathan Dowland <jon+debian-user@dow.land> |
|---|---|
| Date | 2020-06-22 17:20 +0200 |
| Message-ID | <AkwoN-2ZV-1@gated-at.bofh.it> |
| In reply to | #223880 |
On Mon, Jun 22, 2020 at 09:35:45AM -0400, Jim Popovitch wrote: >> I think what happened is that when you set the default colour scheme >> interactively a light background was assumed. That's why you get less >> contrast in your second screenshot. If you subsequently do ':set >> bg=dark' it should look like the first screenshot. That was my take, too. The difference to me looks due to bg=light and bg=dark discrepancy. OP, you doubt this, but have you tried to confirm it? >Hmmmm, I (Debian Buster) ran bg=dark, and then 'colorscheme ron' and now >I have no colors. er, Thanks! I think the ron/peachpuff suggestion is wrong, they are not the default colorschemes on Debian under any circumstances I am aware of. I'm using neovim and the file /usr/share/nvim/runtime/colors/default.vim defines the default colorschemes but this is not very useful to you because it just clears any specific colors, so that the built-in defaults are used instead. -- 👱🏻 Jonathan Dowland ✎ jmtd@debian.org 🔗 https://jmtd.net
[toc] | [prev] | [next] | [standalone]
| From | Lucio <lucio@sulweb.org> |
|---|---|
| Date | 2020-06-22 23:00 +0200 |
| Message-ID | <AkBHQ-64f-19@gated-at.bofh.it> |
| In reply to | #223885 |
Il 22/06/20 17:09, Jonathan Dowland ha scritto: > That was my take, too. The difference to me looks due to bg=light and > bg=dark discrepancy. OP, you doubt this, but have you tried to confirm > it? > I hadn't tried, because I misunderstood Liam's suggestion. I've tried now and you're right, issuing :set bg=dark turns the "default" colorscheme into the same colors as "ron", at least as long as my bash scripts are concerned. However, if I delete $HOME/.vimrc (so no :colorscheme command) and then switch to VT2 (no Xorg running there) I have a dark background just like my xfce4-terminal, but ":colorscheme default" does not assume a light background there and it does not use dark colors: it keeps the light colors (same colors of "ron", just to be clear). That leads me to think there's something in my xfce4-terminal that confuses the default colorscheme and that makes it assume a light background even if it's black. What makes vim or the default colorscheme detect the dark/light background?
[toc] | [prev] | [next] | [standalone]
| From | elvis <elvis@dogonfire.com> |
|---|---|
| Date | 2020-06-22 13:40 +0200 |
| Message-ID | <AksXU-Pt-15@gated-at.bofh.it> |
| In reply to | #223867 |
On 22/6/20 6:53 pm, Lucio wrote: > Il 22/06/20 10:05, elvis ha scritto: >> Somewhere on your system maybe /usr/share/vim or in /etc that >> default colour scheme is defined or linked to a real colour scheme. >> Find it. > > I couldn't find the link, but I found /usr/share/vim/vim81/colors > directory, that contains only 19 colorschemes: not that hard to > bruteforce after all. I've tried all of them one after the other and I > finally found "ron" to be the real default one, despite "colorscheme > default" not loading "ron"... > > Why "colorscheme default" doesn't load the real default, or why the > real default goes by the name of "ron" and "default" is a non-default > choice, is beyond me: maybe Debian exhausted the symlinks pool, so > renaming the "default" file as "classic" or something and symlinking > "default" to "ron" would have broken the whole system, but it doesn't > really matter anymore... problem solved, thanks for your help. > Maybe they were saving it for later-ron ? :-) -- If you owe the bank $100 that's your problem. If you owe the bank $100m, that's the bank's problem.
[toc] | [prev] | [next] | [standalone]
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2020-06-22 16:00 +0200 |
| Message-ID | <Akv9n-24Z-3@gated-at.bofh.it> |
| In reply to | #223867 |
On Mon 22 Jun 2020 at 10:53:46 (+0200), Lucio wrote: > I couldn't find the link, but I found /usr/share/vim/vim81/colors > directory, that contains only 19 colorschemes: not that hard to > bruteforce after all. I've tried all of them one after the other and I > finally found "ron" to be the real default one, despite "colorscheme > default" not loading "ron"... > > Why "colorscheme default" doesn't load the real default, or why the > real default goes by the name of "ron" and "default" is a non-default > choice, is beyond me: maybe Debian exhausted the symlinks pool, so > renaming the "default" file as "classic" or something and symlinking > "default" to "ron" would have broken the whole system, but it doesn't > really matter anymore... problem solved, thanks for your help. Perhaps you should try emailing the file's maintainer. :) Cheers, David.
[toc] | [prev] | [next] | [standalone]
| From | mick crane <mick.crane@gmail.com> |
|---|---|
| Date | 2020-06-22 10:40 +0200 |
| Message-ID | <Akq9I-7Ah-13@gated-at.bofh.it> |
| In reply to | #223862 |
On 2020-06-22 08:36, Lucio wrote: > I posted this question @superuser [1] two days ago, but it seems few > know Debian enough there, so here it is for you. > > In every Linux system I install or I happen to log into I want to use > the same vim colorscheme, e.g. the default one Debian uses, because I > usually use Debian and I like the default colorscheme. What's its > name? I need the name to specify it in the `$HOME/.vimrc` file of > other systems: > > colorscheme whatever > > The problem is that even `default` is not the correct name in Debian, > in fact if I open a file in one of my Debian systems without a > `$HOME/.vimrc` file (so no `colorscheme` command at all), I get this: > > https://i.stack.imgur.com/5hrCd.png > > then, while I'm inside `vim`, I type the `:colorscheme` command, and > it replies `default`. However if I create a `$HOME/.vimrc` file with > `colorscheme default` in it, in the same Debian system, and then I > open the same file, I get this instead: > > https://i.stack.imgur.com/W2rFU.png > > I want the first colorscheme in every other `vim` I use, but I have no > clue about how to specify it. > > > [1]: https://superuser.com/questions/1562159/ I didn't look far enough to find the answer but will probably be in these files /etc/vim/vimrc /usr/share/vim/vim81/colors/README.txt /usr/share/vim/vim81/defaults.vim mick -- Key ID 4BFEBB31
[toc] | [prev] | [next] | [standalone]
| From | l0f4r0@tuta.io |
|---|---|
| Date | 2020-06-22 10:50 +0200 |
| Message-ID | <Akqjn-7DG-5@gated-at.bofh.it> |
| In reply to | #223862 |
Hi, 22 juin 2020 à 09:36 de lucio@sulweb.org: > I want the first colorscheme in every other `vim` I use, but I have no clue about how to specify it. > If I were you, I would: * look into /usr/share/vim/vimXX/colors/ (replace XX with the correct version) * inside vim type ":colorscheme" with no ~/.vimrc to get the colorscheme name that pleases you * inside vim type ":colorscheme [TAB]" with no ~/.vimrc to guess which one it could be + it seems the default colorscheme is not "default" and is depending on the terminal: * "peachpuff" in a light terminal * "ron" in a dark one Try those. Best regards, l0f4r0
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web