Git Product home page Git Product logo

Comments (3)

azabiong avatar azabiong commented on May 27, 2024

Hi zach,
Thanks for your interest in this plugin.

As you know, each preset color has a number, and is applied to words in order by default. And you can also give the color number using number keys before setting, like 7 HiSet for brown color.

Reordering colors is relatively easier than editing the colors with adjustments. If you have a list of colors, you may only need to change the color numbers.

To get the color list and change the numbers, and finally save and load them, the following steps may be useful.

  • First, open a new file, and type any word and then highlight that word. This will fully load the plugin.
  • In the command window, enter the hi command
    : hi
  • After some scrolling down, you can probably find the HiColor list.
  • Using mouse drag, select the HiColor list, copy and paste it to the current empty file.
   HiColor1       xxx ctermfg=17 ctermbg=113 guifg=#001767 guibg=#8fd757
   HiColor2       xxx ctermfg=52 ctermbg=221 guifg=#570000 guibg=#fcd757
  • If you delete the xxx keyword and add the hi command at the beginning, each line will be a complete vim command that you can run right in the command window.
   hi HiColor1  ctermfg=17 ctermbg=113 guifg=#001767 guibg=#8fd757
   hi HiColor2  ctermfg=52 ctermbg=221 guifg=#570000 guibg=#fcd757
  • You can now change color numbers and try it in the command window using copy and paste.
  • If you notice that the colors have changed, I would recommend that you move on to the next step rather than changing the entire color right now.
  • Save the current file with a .vim extension, for example my_color.vim
  • Move the file into your ~/.vim/colors directory (or ~/vimfiles/colors on Windows)
  • Let’s see if we can load my_color using vim command. Enter colo<tab><tab> in the command window
    : colo<Tab><Tab>
  • If it works, yes, you can now open your color scheme file my_color at any time, edit or add new colors.
  • Finally add a command to automatically load your colors in the bottom part of your configuration file.
  colorscheme my_color

from vim-highlighter.

zach-is-my-name avatar zach-is-my-name commented on May 27, 2024

Thank you. The rest of the documentation seemed clear and this feels like a solid plugin for a wonderful use-case. Next time I need to use the feature, I'll reference this to get the effect I'm looking for

from vim-highlighter.

azabiong avatar azabiong commented on May 27, 2024

Nice, I hope this tool helps. Please let me know if you need any other feature.
Thank you

from vim-highlighter.

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.