Vi and Vim Asked by Soap on December 11, 2020
Note: I am fairly new to NeoVim. So far I have installed plugins by simply unzipping the plug-in master folder into the directory /usr/share/nvim/runtime/plugin
. In case there is no master folder I just move the pluginname.vim file to this directory. It has worked well until now.
I am trying to install the GhostText plugin which goes with the GhostText extension for Firefox. I did it as before, by simply unzipping the plug-in master folder into the directory /usr/share/nvim/runtime/plugin
, so that now I have a directory called vim-ghost-master
in that directory.
When I run a nvim session and run the command :GhostInstall
(which does autocomplete), I get the following error:
What should I do?
Just use packages to install Vim plug-ins.
Simply create a directory ~/.vim/pack/something/start
, where "something" is literally anything, perhaps use your nickname "Soap".
Then unpack or git clone the plug-in tree there, so you get ~/.vim/pack/Soap/start/vim-ghost-master
and then you get the plug-in directories (autoload
, plugin
, python3
) all there.
This would probably fix the plug-in, since it looks like it's failing to find the Python code, most likely because it's expecting to find it at the root of a plug-in directory, rather than somewhere inside a subdirectory of plugin
.
If you're writing to the system location because you want the plug-in to be available to all users in your system, you can still use packages, just use the appropriate location, which it seems would be /usr/share/nvim/site/pack
in NeoVim (/usr/share/vim/vimfiles/pack
in Vim 8), and same scheme of creating a subdir (any name) and then start/
under it. (See :help 'packpath'
and :help 'runtimepath'
for more information on these paths.)
Answered by filbranden on December 11, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP