Comments (5)
I can't remember the exact reasons, but I think it has to do with :syntax reset
and some after/syntax
files here. Try :edit
or :edit!
(the latter only if you are ok losing unsaved changes, or after :write
ing the file) to re-trigger syntax loading. Possibly :syntax enable
would also work.
from vim.
Using
syntax on
after loading the theme solved the problem.
Glad to hear! Consider :syntax enable
instead, which will do the right thing with your custom highlights:
*:syn-on* *:syntax-on*
The `:syntax enable` command will keep most of your current color settings.
This allows using `:highlight` commands to set your preferred colors before or
after using this command. If you want Vim to overrule your settings with the
defaults, use: >
:syntax on
<
Sorry for the very silly question
It's not silly; don't be sorry!
from vim.
Alternatively, guard against re-executing :colorscheme
by checking g:colors_name
.
from vim.
Thanks @benknoble!
Using syntax on
after loading the theme solved the problem. Sorry for the very silly question
from vim.
Done, thanks again :)
from vim.
Related Issues (20)
- How to change shade of green HOT 1
- 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
- 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
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.