Comments (11)
I had the same issue as @filipesf.
Finally I found that I forgot to enable truecolor support in vim.
Add set termguicolors
into my vimrc did the trick.
from vim.
Shit. 4 years of using Vim and I did not figure it out until now. :D
from vim.
I'm not sure if I had the same problem, but for most terminals I've tried this with under Linux (xfce4-terminal, urxvt), the dracula theme did not work.
This fixed it for me:
Add set t_Co=256
before let g:colors_name = 'dracula'
on line 21.
from vim.
Updated the colorscheme today via Plug and got the same problem as @nemanjan00. I'm guessing fairly recent breaking change?
I'm using macvim without GUI.
from vim.
Seems like this commit breaks it for me: 38d5c9b
ctermbg
is set which causes weird background color artifacts (screenshot provided with cowsay from Startify):
Current hacky workaround for me is to set it to NONE
after the colorscheme line:
colorscheme dracula
highlight Normal ctermbg=NONE
Problem with this workaround for me is that I have to reload my .vimrc
file everytime I restart vim
(since the highlight line seems to be ignored on startup for some reason). So I have to do this autocmd
as well 😭:
autocmd BufEnter * :highlight Normal ctermbg=NONE ctermfg=NONE
from vim.
Seams like it is not drawing parts of background. (at least to me)
from vim.
Mine looks slightly different as well. Though not that bad.
My guess is that I'm not using any GUI:
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Apr 19 2017 09:57:52)
MacOS X (unix) version
Included patches: 1-567
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_sgr +tag_old_static
+arabic +find_in_path -mouse_sysmouse -tag_any_white
+autocmd +float +mouse_urxvt -tcl
-balloon_eval +folding +mouse_xterm +termguicolors
-browse -footer +multi_byte +terminfo
++builtin_terms +fork() +multi_lang +termresponse
+byte_offset -gettext -mzscheme +textobjects
+channel -hangul_input +netbeans_intg +timers
+cindent +iconv +num64 +title
-clientserver +insert_expand +packages -toolbar
+clipboard +job +path_extra +user_commands
+cmdline_compl +jumplist +perl +vertsplit
+cmdline_hist +keymap +persistent_undo +virtualedit
+cmdline_info +lambda +postscript +visual
+comments +langmap +printer +visualextra
+conceal +libcall +profile +viminfo
+cryptv +linebreak +python +vreplace
+cscope +lispindent -python3 +wildignore
+cursorbind +listcmds +quickfix +wildmenu
+cursorshape +localmap +reltime +windows
+dialog_con -lua +rightleft +writebackup
+diff +menu +ruby -X11
+digraphs +mksession +scrollbind -xfontset
-dnd +modify_fname +signs -xim
-ebcdic +mouse +smartindent -xpm
+emacs_tags -mouseshape +startuptime -xsmp
+eval +mouse_dec +statusline -xterm_clipboard
+ex_extra -mouse_gpm -sun_workshop -xterm_save
+extra_search -mouse_jsbterm +syntax
+farsi +mouse_netterm +tag_binary
Could it be the reason? I'm running Vim straight from iTerm2.
There's any way to enable vim to use GUI colours instead cterm?
In case someone need, here's my vimrc:
https://github.com/filipesf/dotfiles/blob/master/vim/vimrc
from vim.
System: Arch Linux
Terminal: urxvt
@spoike's solution of setting highlight Normal ctermbg=NONE
after colorscheme
worked for me.
@BourgeoisBear's solution did not.
from vim.
I had the same problem and it was solved after setting either @spoike's solution or reverting 38d5c9b .
from vim.
@enosair Thank you!
from vim.
I had the same issue as @filipesf.
Finally I found that I forgot to enable truecolor support in vim.Add
set termguicolors
into my vimrc did the trick.
Спасибо тебе добрый человек, я 2 дня убил на это
from vim.
Related Issues (20)
- Highlight works from the start with treesitter, but is lost after sourcing vimrc. HOT 23
- [advice] change the name of plugin HOT 2
- theme is transparent in kitty HOT 10
- The bg-color of neovim with dracula theme is not as in their site. HOT 4
- The highlight breaks after the second use of :colorscheme dracula HOT 3
- Issue with tree-sitter-css HOT 5
- [Feature Request]: lsp semantic highlight HOT 16
- Janky Cursorline Highlighting With Treesitter HOT 5
- Invalid character in group name HOT 14
- Colors doesn't look the same of VScode for JS files HOT 1
- Sourcing vimrc changes theme HOT 5
- can't make dracula_pro installation instructions work for me on Vim HOT 3
- Would be possible to assign a different color to a nvim :terminal window? HOT 2
- Dracula not working HOT 4
- nvim nerd font icons HOT 12
- How dracula supports italics for comments HOT 4
- Lunar Vim Color Scheme Mismatch to Other Editors HOT 1
- Treesitter Markdown highlighting HOT 8
- Cannot customize plugin specific highlight groups linked in /after files. HOT 13
- Dracula breaks in floating windows in neovim 0.10.0 HOT 4
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 vim.