Comments (13)
Hi, thanks for reporting this.
Looks like the g:terminal_ansi_colors
is not set.
Cheers
from zenburn.
I'll soon upload a fix with nicer coloring. They have the same color order as the terminal usually has.
The terminal is not tinted towards some specific color (that could be for future work).
Looks like the terminal coloring feature needs Vim 8.2.0+
Please note, it seems one must use "set termguicolors" when running Vim in a terminal.
Please let me know if it works better, closing for now.
Cheers!
from zenburn.
Hi,
Thanks, the terminal colours are as what is usually in the terminal outside Vim now'. The background is still black. I had the termguicolors set. Also, if you don't mind me saying, the relative line numbers' colouring stands out a little too much a bit distracting, I felt like the line number colours could be muted more and the background of the left gutter be a bit more grey just a shade or two different from the main background.
Thanks.
from zenburn.
Hi,
hmm, about the line numbers colouring, you are right.
Now that you pointed it out it is a standing out a bit too much.
I added a switch called g:zenburn_subdued_LineNr
.
Here is a picture of it enabled in low high contrast mode in the GUI:
And here in high low contrast mode in the GUI:
Edit: typos
from zenburn.
PS. I added a fix now for the terminal colouring, use ANSI colors for Vim 8.2.0+, otherwise the older one. It looks like the Terminal highlight group disturbed the background. Now the terminal looks more as intended.
Does the terminal now look as you expected?
from zenburn.
Sorry for late reply. All looks great now! Except the highlight of the numbers gutter with set cursorline
. The current line's number gets underlined with yellow.
from zenburn.
Hi, can you please attach a screenshot?
I don't see the underline, with or without :set cursorline
, I have tried terminal and vim -g for different versions... Do you have some other setting enabled?
from zenburn.
Here is a screen shot. I launched Vim without the .vimrc, set the colorscheme and then the cursorline.
from zenburn.
Thanks, I can see it with Vim 8.2:
But with 8.0 no such thing:
The syntax file is exactly the same in both cases.
It looks like Vim overrides cterm=underline always, possibly due to commit 017ba07fa2cdc5
in 8.1.2029.
Not sure yet how to solve this, explicitly specifying cterm doesn't help.
from zenburn.
Looks like explicit cterm=none works, but the colorscheme must be loaded at Vim startup time i.e. Vim must be restarted for this change to take effeect.
There's a fix now, can you please check if it's OK?
from zenburn.
Your fix works, thanks. Following your code above, I've put this right at the end of the .vimrc
set cursorline
highlight CursorLineNR cterm=NONE ctermfg=234 ctermbg=234 guifg=#424242 guibg=#1b1b1b
I am trying to make the line highlight not effect the gutter at all, but I can't get the background colour right, I got the colours from your zenburn.vim file. What is the correct gui background colour for the gutter? Do you know if there is an easier way to disable the highlight in the gutter altogether?
from zenburn.
Hi, there should not be need to specify highlight CursorLineNR
since Zenburn has the cterm=none
now.
Anyway, you should get a newer Vim, like 8.2 and then do :set cursorlineopt=line
to avoid highlighting the gutter.
Edit: just to be clear, grab the newest Zenburn and you get commit 4ec3795 "Fix underlined CursorLineNr in gutter" which does the cterm=none.
from zenburn.
Ah, that's great! Thank you so much!
from zenburn.
Related Issues (20)
- Python formatting broken HOT 1
- New URL for the repo HOT 1
- New Themes for Atom.io HOT 1
- problem with colors in ConEmu HOT 7
- requesting an improved scala theme HOT 1
- underline in YAML files HOT 1
- Cursor is too Dark HOT 4
- zenburnpage goes 404 HOT 1
- Terminal field hasn't been set? HOT 1
- Conceal colors HOT 1
- http://kippura.org/zenburnpage returns http error 404 HOT 1
- Make comments italic in terminal HOT 1
- Terminal Ansi Colors twisted? HOT 3
- What's this font family in screenshot? HOT 4
- Error when loading zenburn colorscheme HOT 3
- Does Zenburn work better in terms of syntax highlighting with vim-polyglot? HOT 2
- Cannot install it after updating phpstorm 2023.3.1 HOT 1
- Add `cterm=bold` to `hi TabLineFill` commands HOT 1
- contrast too low for highlighted background of snippet placeholders HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zenburn.