Giter VIP home page Giter VIP logo

Comments (15)

arcticicestudio avatar arcticicestudio commented on May 23, 2024

Have you tried to reproduce it without any plugin enabled?

I've tried to reproduce this, but it works fine on my system.

gh-71-scrot-reproduction

from vim.

sivakov512 avatar sivakov512 commented on May 23, 2024

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.

arcticicestudio avatar arcticicestudio commented on May 23, 2024

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.

sivakov512 avatar sivakov512 commented on May 23, 2024

@arcticicestudio oh, I try it and nothing changed :(

from vim.

sivakov512 avatar sivakov512 commented on May 23, 2024

For example, now cursor at }
image

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.

sivakov512 avatar sivakov512 commented on May 23, 2024

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.

arcticicestudio avatar arcticicestudio commented on May 23, 2024

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.

sivakov512 avatar sivakov512 commented on May 23, 2024

Wow, cool! Thanks a lot!

from vim.

arcticicestudio avatar arcticicestudio commented on May 23, 2024

Your're welcome. Glad to see it worked 😄

from vim.

dylnmc avatar dylnmc commented on May 23, 2024

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:

tmp


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.

arcticicestudio avatar arcticicestudio commented on May 23, 2024

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.

dylnmc avatar dylnmc commented on May 23, 2024

Are you implying that I use other colorschemes? 😏

Thanks .. fixed 🐈

from vim.

arcticicestudio avatar arcticicestudio commented on May 23, 2024

Of course not! 😛

But I think there's not reason to not use this feature to prevent any side effects.

from vim.

arcticicestudio avatar arcticicestudio commented on May 23, 2024

@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.

arcticicestudio avatar arcticicestudio commented on May 23, 2024

Duplicate of #75

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.