Comments (15)
Have you tried to reproduce it without any plugin enabled?
I've tried to reproduce this, but it works fine on my system.
from vim.
Yes, it looks like this.
But it's not clear where the cursor is. I think that the highlighted pair should be paler.
Now when navigating, it creates the feeling that the cursor is jumping over the text and it distracts attention.
from vim.
I think this is more a kind of personal preference and also depends on the used shell/terminal emulator. It is totally fine that you not agree to all highlighting color assignments, everyone has different preferences.
If you'd like to change the bracket matching highlighting add this snippet into your ~/.vimrc
somewhere before you set the color scheme (colorscheme nord
) and modify the values to fit your needs:
augroup nord-overrides
autocmd!
autocmd ColorScheme nord highlight MatchParen ctermbg=6 ctermfg=0 guibg=#88C0D0 guifg=#2E3440
augroup END
Note that this is the recommended solution since this will only apply to the Nord color scheme and won't effect other color schemes!
Reload Vim or run :colorscheme nord
to see the changes.
Another solution might be to configure your shell/terminal emulator. I use zsh and Tilix which works fine when configuring the cursor to be well recognizable (Tilix also allows me to configure dynamic profiles which will be enabled when e.g. Vim is running and makes the cursor larger and bold).
from vim.
@arcticicestudio oh, I try it and nothing changed :(
from vim.
Part of my init.vim
:
augroup nord-overrides
autocmd!
autocmd ColorScheme nord highlight MatchParen ctermbg=6 ctermfg=0 guibg=#88C0D0 guifg=#2E3440
augroup END
colorscheme nord
from vim.
Help me, please. I don't understand how to fix this.
I use neovim and xfce4-terminal.
It looks the same in Alacritty.
from vim.
Well, you copied the snippet, but forgot to change the values 😉
You need to change the colors for ctermbg
and ctermfg
groups if you're using Vim in terminal mode, otherwise guibg
and guifg
for GUI mode. The color values for the GUI mode are simple HEX values, the color for the terminal mode are the 0-16 of the used terminal color palette.
For example, if you'd like to use nord9
as background color for the matching brackets change the snippet to
augroup nord-overrides
autocmd!
autocmd ColorScheme nord highlight MatchParen ctermbg=4 ctermfg=0 guibg=#81A1C1 guifg=#2E3440
augroup END
from vim.
Wow, cool! Thanks a lot!
from vim.
Your're welcome. Glad to see it worked 😄
from vim.
May I add to this convo? I feel as though the matching bracket is really confusing, as I do not use a blinking cursor.
eg, I have this in my vimrc
augroup nord
autocmd ColorScheme * highlight MatchParen ctermbg=0 ctermfg=3
autogroup end
It's not the best solution (see the screenshot below), but it is better than having the same colors (very confusing for me).
If you could invest a few minutes and try and think of an alternative (maybe another user-defined boolean that allows the colors to be set to something more different), that would be amazeballs. If you don't have time/don't want to, I totally understand, as well, and will just keep my little vimrc change.
Thanks,
dylnmc
screenshot:
UPDATE
Disregard everything I just said; I don't know how … huh. Now they are different in vim and gvim ... Thanks for the goodie good colo scheme, @arcticicestudio 😸
from vim.
Another theme configuration would be a solution, but I've currently no design idea to solve this.
Only using the bold
attribute for the foreground is barely noticeable and (sadly) the bold
and italic
attributes are still not supported by every shell/terminal. The same goes for another background color like nord2
/nord1
regarding the visibility.
I think users should just use the awesome Vim feature to override groups, thanks to the scoping it won't even affect other themes/plugins.
@dylnmc By the way, if you'd like to apply the modification you've posted above to Nord you should change the snippet to
augroup nord
autocmd ColorScheme nord highlight MatchParen ctermbg=0 ctermfg=3
autogroup end
The *
character causes this auto command group to be applied to every theme.
from vim.
Are you implying that I use other colorschemes? 😏
Thanks .. fixed 🐈
from vim.
Of course not! 😛
But I think there's not reason to not use this feature to prevent any side effects.
from vim.
@cryptomaniac512 @dylnmc You might like to subscribe to #75 and #78 which improves the highlighting for matching elements. The @vincentzhezhang came up with a nice idea while comparing it to the Gruvbox color scheme. I've posted some feedback in the PR and maybe you'd like to test and review the changes 😄
from vim.
Duplicate of #75
from vim.
Related Issues (20)
- Unable to setup Nord vim with packer.nvim HOT 2
- Support for lewis6991/gitsigns.nvim broken HOT 6
- GitHub Flow migration HOT 1
- From `master` to `main`
- Possible to override `nord` variables outside the plugin? HOT 2
- Tank you for changing 'master' to 'main'... HOT 1
- Underline doesn't work in windows terminal HOT 7
- Weird Syntax Highlighting for neovim HOT 5
- Theme looks weird on WSL HOT 3
- theme does not set `Terminal` highlight group HOT 3
- Fix image asset URLs after `nord-docs` GitHub flow and `main` branch migration
- Just a question about the laststatus line HOT 1
- Northern Post — The state and roadmap of Nord
- `nordtheme` organization migration
- Possible conflict induced by the name of the repository HOT 2
- Different color between text mode and math mode in LaTeX HOT 2
- Adapt remaining `arcticicestudio` "fade-out" changes
- text.diff not working with Nord Theme HOT 1
- Highligted words in visual mode are invisible in neovim HOT 4
- Can't get theme working in VIM 9.0.1499 HOT 1
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.