iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.66k stars 276 forks source link

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

Open marioortizmanero opened 5 years ago

marioortizmanero commented 5 years ago

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

iamcco commented 5 years ago

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.

the42 commented 5 years ago

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

garyhubley commented 4 years ago

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.

rogchap commented 4 years ago
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

r3k2 commented 4 years ago

Awesome thanks.

DimiTech commented 4 years ago

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

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

Hope it helps as well.

Huansock commented 6 months ago
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?

rogchap commented 6 months ago

@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