Giter Site home page Giter Site logo

Background becomes grey about vim HOT 13 CLOSED

dracula avatar dracula commented on May 18, 2024 2
Background becomes grey

from vim.

Comments (13)

dsifford avatar dsifford commented on May 18, 2024 93

You're likely using a terminal that doesn't have truecolor support.

The BEST solution is to find a better terminal. But the solution I think you're personally looking for is to set the variable let g:dracula_colorterm = 0 in your init scripts before loading the colorscheme.

Let me know if that helps.

from vim.

dsifford avatar dsifford commented on May 18, 2024 46

Add set termguicolors to your vimrc

from vim.

dsifford avatar dsifford commented on May 18, 2024 32

Also, you'll need to set let g:dracula_italic = 0 to make those blue highlights go away. Your terminal also does not support italic fonts (or you have tmux set up incorrectly and they're not being rendered)

from vim.

Knowledge-Wisdom-Understanding avatar Knowledge-Wisdom-Understanding commented on May 18, 2024 8

You're likely using a terminal that doesn't have truecolor support.

The BEST solution is to find a better terminal. But the solution I think you're personally looking for is to set the variable let g:dracula_colorterm = 0 in your init scripts before loading the colorscheme.

Let me know if that helps.

omg omg this worked hooray!!!!! I'm using ohmyzsh + ohmytmux + amix/vimrc + tilix terminal and nothing seemed to work. but this. this worked. : ) 👍 💯

from vim.

yzgyyang avatar yzgyyang commented on May 18, 2024 1

Right on, now it worked.. Thanks again for the help! @dsifford

from vim.

yzgyyang avatar yzgyyang commented on May 18, 2024

Worked like a charm, thank you @dsifford for the solution and explanation. I only knew about xterm-256color before and never realized the truecolor and italic settings for multiple terminals like iTerm and gnome-terminal.

Sorry again for a newbie question!

from vim.

yzgyyang avatar yzgyyang commented on May 18, 2024

@dsifford As I try to configure my terminal (iTerm2 v3.1.7), I found out that those values are already:

➜  ~ echo $TERM
xterm-256color
➜  ~ echo $COLORTERM
truecolor

Do you have any insights about what has possibly gone wrong here?

from vim.

yzgyyang avatar yzgyyang commented on May 18, 2024

A test script also indicates that I already have truecolor support in my terminal: https://raw.githubusercontent.com/robertknight/konsole/master/tests/color-spaces.pl

image

from vim.

dsifford avatar dsifford commented on May 18, 2024

Are you using tmux?

from vim.

yzgyyang avatar yzgyyang commented on May 18, 2024

Are you using tmux?

I am not.

from vim.

pqks avatar pqks commented on May 18, 2024

Add set termguicolors to your vimrc

This works on xfce-terminal. @dsifford i have a question, set termguicolors What exactly does it do?

from vim.

benknoble avatar benknoble commented on May 18, 2024

@pbnanc it asks vim to use GUI-based colors even in the terminal, which can provide "better" color on terminals that support truecolor (I don't have a metric handy for the "better," hence the quotes).

cf. :help termguicolors

from vim.

dsifford avatar dsifford commented on May 18, 2024

From the help file:

'termguicolors' 'tgc'	boolean (default off)
			global
	When on, uses |highlight-guifg| and |highlight-guibg| attributes in
	the terminal (thus using 24-bit color). Requires a ISO-8613-3
	compatible terminal.

from vim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.