AnswerBun.com

:GhostInstall does not work

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:

enter image description here

What should I do?

One Answer

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

Add your own answers!

Related Questions

Text to vim-quickfix with navigation

1  Asked on December 30, 2021

   

add second column next to line number column

1  Asked on December 28, 2021 by cmosig

 

Append single-line register to many lines

1  Asked on December 26, 2021 by mat-m

   

termguicolors vs :terminal: incorrect colors being displayed

0  Asked on December 16, 2021 by henrique-barcelos

   

Unable to map ctrl-l

0  Asked on December 2, 2021

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP