Comments (3)
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 thehi
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 examplemy_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. Entercolo<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.
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.
Nice, I hope this tool helps. Please let me know if you need any other feature.
Thank you
from vim-highlighter.
Related Issues (20)
- Clear all when cursor is not on any highlight HOT 7
- Feature Request: Send highlights to quickfix/loclist HOT 10
- Question: How to replace builtin n, N and * commands. HOT 5
- install instructions HOT 1
- autoload highlight after split window HOT 1
- Error while creating a highlighting while selecting a single line with visual line mode HOT 3
- Feature Request: add support for line-pattern (\%l) HOT 5
- Getting No such group or event error HOT 2
- Unable to save when whitespaces in the path HOT 2
- whole words & ignore case HOT 1
- Visual Mode remap HOT 2
- Feature request: replacement HOT 6
- Feature request: highlight a large visual selection (possibly on multiple lines) HOT 20
- Can we expose HiSet, HiErase etc as vim commands? HOT 3
- HiSense('N') not working HOT 2
- HiMapKeys doesnt seem to work HOT 6
- How to programmatically set HiSetSL and HiSet (visual mode) HOT 6
- Is there a way to disable the command line abbreviation? HOT 3
- 2 Errors once loading hl file HOT 7
- [Question] The highlight's color was different from two window. HOT 2
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-highlighter.