markdown-preview.nvim icon indicating copy to clipboard operation
markdown-preview.nvim copied to clipboard

How to install with Vim 8 using the built-in package manager ?

Open marioortizmanero opened this issue 5 years ago • 8 comments

It'd be great to have a quick guide on how to install this on Vim 8 with its built-in package manager

marioortizmanero avatar May 13 '19 17:05 marioortizmanero

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.

iamcco avatar May 14 '19 04:05 iamcco

Anybudy succeded in that? I do have no rights to install a Vim package manager so have to do it manually

the42 avatar Sep 17 '19 07:09 the42

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.

garyhubley avatar Nov 25 '19 18:11 garyhubley

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

rogchap avatar Jan 02 '20 11:01 rogchap

Awesome thanks.

r3k2 avatar Mar 25 '20 03:03 r3k2

I install this plugin using Node.js & NPM in this video:

https://youtu.be/-c-mhAFbtHU

Hope it helps as well.

DimiTech avatar May 02 '20 19:05 DimiTech

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 avatar Mar 21 '24 19:03 Huansock

@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

rogchap avatar Mar 21 '24 20:03 rogchap