question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

E117: Unknown function: mkdp#util#install

See original GitHub issue

安装插件的时候报错:

Post-update hook for markdown-preview.nvim ... Vim(return):E117: Unknown function: mkdp#util#install

vim是官网最新build的版本。https://github.com/vim/vim-win32-installer/releases 系统:win10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

14reactions
StarryLeocommented, May 26, 2020

This may be caused by post-update hook bug of vim-plug, see https://github.com/junegunn/vim-plug/issues/964, after fixed, the following line

Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': 'markdown' }

should work fine without adding 'for': 'vim-plug'. Before fixed, I have been using

Plug 'iamcco/markdown-preview.nvim', { 'do': ':call mkdp#util#install()', 'for': 'markdown' }

which also is supposed by vim-plug to solve this problem.

3reactions
junshoongcommented, Oct 4, 2021

Thanks! it’s works for me ~/.vimrc

" Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']}
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': 'markdown' }

then, :call mkdp#util#install()

Read more comments on GitHub >

github_iconTop Results From Across the Web

vimscript: calling function inside inoremap throws "unknown ...
I have same problem on my machine (Ubuntu 22.04, nvim v0.8.0-1210, coc.nvim). I “solved” this problem by removing this stuff:
Read more >
markdown-preview.nvim - Bountysource
I wanted to extend my markdown preview with a simple javascript function. Adding tags does not work because javascript cannot be loaded after...
Read more >
Vim: E117: Unknown function: styledcomplete#CompleteSC
Autocompletion, Language Support, and Styled Components. Lately, I was getting this error: E117: Unknown function: styledcomplete#CompleteSC.
Read more >
async vim - CSDN
解决vim报错解决vim报错“E117: Unknown function: textobj#user#plugin” imaginemiracle:$ sudo apt-get install vim-textobj-user imaginemiracle:$ cd ~/.vim/plugged/ ...
Read more >
[vim/vim] E117: Unknown function: dist#script#DetectFiletype ...
BufRead Autocommands for "*"..script /usr/share/vim/vim82/scripts.vim: line 30: E117: Unknown function: dist#script#DetectFiletype Press ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found