markdown-preview.nvim
markdown-preview.nvim copied to clipboard
How to install with Vim 8 using the built-in package manager ?
It'd be great to have a quick guide on how to install this on Vim 8 with its built-in package manager
Sorry I know less of the built-in package manager. But the key point to install the plugin is that install the plugin like normal plugin you install and then go to the plugin's app
directory run yarn install
or npm install
. Maybe others who use the built-in package manager can help.
Anybudy succeded in that? I do have no rights to install a Vim package manager so have to do it manually
clone the repository as if you were installing a normal plugin. Once it is cloned, go to the app directory and run install.sh. That seems to have worked for me.
git clone https://github.com/iamcco/markdown-preview.nvim.git pack/plugins/start/markdown-preview.nvim
reload vim, then in vim:
:call mkdp#util#install()
reload vim, again.. done
Awesome thanks.
I install this plugin using Node.js & NPM in this video:
https://youtu.be/-c-mhAFbtHU
Hope it helps as well.
git clone https://github.com/iamcco/markdown-preview.nvim.git pack/plugins/start/markdown-preview.nvim
reload vim, then in vim:
:call mkdp#util#install()
reload vim, again.. done
can you explain it, why is this works? and how did you find this way?
@Huansock it’s just how vim 8+ does package management.
you just need to place your package in the ~/.vim/pack
folder (in this case ~/.vim/pack/plugins/start/
)
you can read the docs about this in vim via :help packages