Open Maxsash opened 3 years ago
cloned the repo into ~.vim/plugin/color/
That’s why it doesn’t work. That’s not how installing plugins works in Vim.
made no other changes
Sure, the one change you made is all it takes to break it. If you put it in ~/.vim/pack/css-color/start/css-color
it will work.
If you don’t want to do that, you don’t have to – the way Vim loads plugins gives you a wide variety of ways of how to add the files from this plugin to your setup so that it will work. E.g. the parts in that path called css-color
can be called anything else, and that will work just as well. Feel free to read the Vim docs on how all that works and do it some other way.
cloned the repo into ~.vim/plugin/color/
That’s why it doesn’t work. That’s not how installing plugins works in Vim.
made no other changes
Sure, the one change you made is all it takes to break it. If you put it in
~/.vim/pack/css-color/start/css-color
it will work.If you don’t want to do that, you don’t have to – the way Vim loads plugins gives you a wide variety of ways of how to add the files from this plugin to your setup so that it will work. E.g. the parts in that path called
css-color
can be called anything else, and that will work just as well. Feel free to read the Vim docs on how all that works and do it some other way.
I did try putting it in that directory as well. Doing that made it not detect anything at all. I mean vim opened up like nothing was changed. About ~.vim/plugin : I followed the steps from :help plugin. Whatever be the case. I guess I will try again. Thank you for your comment.
I did try putting it in that directory as well. Doing that made it not detect anything at all.
Hmm, curious.
What version of Vim are you using? (:version
)
What else is in your Vim config?
I followed the steps from
:help plugin
Yeah, I can see that now. Those instructions are… unfortunate. (They’ll work for (almost all) plugins that come in a single file, but they’re almost certain to be wrong for more complex plugins.)
My vim version is 8.2. You can check out my config file here. It is pretty simple. I did start using another plugin for highlighting colors since this was not working for me.
Those instructions are… unfortunate.
That did occur to me so I simply removed the contents of ~/.vim/plugin and copied the command from README here but that looked like a further step back.
Let me know if you can figure something out because I really would rather use this one as this seems more active.
I get the following error:
cloned the repo into ~.vim/plugin/color/ made no other changes I have no plugin manager