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.

Chrome won't start ?

See original GitHub issue

win 10 nvim-qt markdown-preview.vim install ok

When I run the command MarkdownPreview

The Chrome won’t start. why is this happened?

my init.vim

"Set GUI"
set guifont=Source\ Code\ Pro:h14
colorscheme molokai

"Set Env"
let g:python3_host_prog='c:\Anaconda3\python.exe'

"Key Map"
nnoremap to :tabo<CR>
nnoremap S S<ESC>
nnoremap <leader>te /^\s*$<CR>
nnoremap p p`]
vnoremap y y`]
nnoremap Y y$
nnoremap <A-x> @:
nnoremap <A-a> <C-o> 
nnoremap <A-d> <C-i>
nnoremap <C-s> :w<CR>
nnoremap qq :x<CR>
nnoremap ww :w<CR>
nnoremap <silent><leader>o :silent !start explorer %:p:h<cr>
nnoremap <leader>wc :%s/<C-r><C-w>//gn<CR>
nnoremap <C-o> i<Enter><Esc>
nnoremap <A-1> :MRU<CR>
vnoremap <A-1> :MRU<CR>
nnoremap <C-A-r> :Restart<CR>
nnoremap <leader>tn :tabnew<CR>
nnoremap <C-n> :tabnew<CR>
nnoremap <C-t> :tabnew<CR>
nnoremap <A-z> :exe "tabn ".g:lasttab<CR>
nnoremap <A-h> <C-w>h
nnoremap <A-l> <C-w>l
nnoremap <A-=> <C-w>=
nnoremap <C-Tab> :exe "tabn ".g:lasttab<CR>
vnoremap gh ^
vnoremap gl $
nnoremap gl $
nnoremap gV `[v`]
nnoremap <S-Enter> o<ESC>
nnoremap cw ce
nnoremap <A-;> A:<ESC>o
nnoremap dtt d/[]">)']<cr>:noh<cr>h 
nnoremap ctp :call SelectContent()<CR>a<C-r>*<ESC>
nnoremap ctt :call SelectContent()<CR>a
nnoremap n nzz
nnoremap N Nzz
nnoremap <leader>gd :g/<C-r><C-w>/d<CR>
nnoremap <leader>vd :v/<C-r><C-w>/d<CR>
vnoremap <leader>gd "zy:g/<C-r>z/d<CR>
vnoremap <leader>vd "zy:v/<C-r>z/d<CR>
nnoremap / /\v
nnoremap <leader>uw :s/\<./\u&/g<CR>:noh<CR>
vnoremap <leader>uw :s/\%V\<./\u&/g<CR>:noh<CR>
nnoremap <C-A-h> <C-w>h
vnoremap <C-A-h> <C-w>h
vnoremap <A-s> :call Compile_Run_Code()<CR>
nnoremap to :tabo<CR>
nnoremap S S<ESC>
nnoremap <leader>te /^\s*$<CR>
nnoremap p p`]
vnoremap y y`]
nnoremap Y y$
nnoremap <A-x> @:
nnoremap <A-a> <C-o> 
nnoremap <A-d> <C-i>
nnoremap <C-s> :w<CR>
nnoremap qq :x<CR>
nnoremap ww :w<CR>
nnoremap <silent><leader>o :silent !start explorer %:p:h<cr>
nnoremap <leader>wc :%s/<C-r><C-w>//gn<CR>
nnoremap <C-o> i<Enter><Esc>
nnoremap <A-1> :MRU<CR>
vnoremap <A-1> :MRU<CR>
nnoremap <C-A-r> :Restart<CR>
nnoremap <leader>tn :tabnew<CR>
nnoremap <C-n> :tabnew<CR>
nnoremap <C-t> :tabnew<CR>
nnoremap <A-z> :exe "tabn ".g:lasttab<CR>
nnoremap <A-h> <C-w>h
nnoremap <A-l> <C-w>l
nnoremap <A-=> <C-w>=
nnoremap <C-Tab> :exe "tabn ".g:lasttab<CR>
vnoremap gh ^
vnoremap gl $
nnoremap gh :call Jump2Head()<CR>
nnoremap gl $
nnoremap gV `[v`]
nnoremap <S-Enter> o<ESC>
nnoremap cw ce
nnoremap <A-;> A:<ESC>o
nnoremap dtt d/[]">)']<cr>:noh<cr>h 
nnoremap ctp :call SelectContent()<CR>a<C-r>*<ESC>
nnoremap ctt :call SelectContent()<CR>a
nnoremap n nzz
nnoremap N Nzz
nnoremap <leader>gd :g/<C-r><C-w>/d<CR>
nnoremap <leader>vd :v/<C-r><C-w>/d<CR>
vnoremap <leader>gd "zy:g/<C-r>z/d<CR>
vnoremap <leader>vd "zy:v/<C-r>z/d<CR>
nnoremap / /\v
nnoremap <leader>uw :s/\<./\u&/g<CR>:noh<CR>
vnoremap <leader>uw :s/\%V\<./\u&/g<CR>:noh<CR>
nnoremap <C-A-h> <C-w>h
vnoremap <C-A-h> <C-w>h
nnoremap <C-A-l> <C-w>l
vnoremap <C-A-l> <C-w>l
nnoremap <A-t> xp
nnoremap <A-S-t> Xp
nnoremap <leader>dkh :g/^[\s\|\r]*$/d<CR>
nnoremap <leader>fbl /\v^\s*$<CR>
nnoremap <silent> <Plug>TransposeCharacters :call NERDComment("n", "Toggle")<CR>
vnoremap <silent> <Plug>TransposeCharacters :call NERDComment("x", "Toggle")<CR>
nnoremap <A-=> magg=G`a
nnoremap <A-n> :noh<CR>
nnoremap ccw <ESC>viw"+y
nnoremap yw yiw 
nnoremap <C-S-t> :call UndoCloseTab()<CR> 
nnoremap cp  <ESC>movip"+y`oh<ESC>
nnoremap yp  yip
nnoremap dp  dip
nnoremap vcp vip:call NERDComment('x',"toggle")<CR>
nnoremap <leader>dir V:s/\\/\//g<CR>:noh<CR>
nnoremap <leader>ex 0v$hy:<C-r>0<CR>
nnoremap <C-A-t> :tabnew<CR>:MRU<CR>1<CR>
nnoremap <Leader>s :%s/\<<C-r><C-w>\>//g<Left><Left>
vnoremap <Leader>s y:%s/<C-r>"//g<Left><Left>
nnoremap gx :call HandleURL()<cr>
nnoremap <leader>vm :tabnew<CR>:cd D:\VmWareShare\<CR>:NERDTree<CR>
nnoremap <A-r>      <ESC>:call EditVimrc()<CR>
nnoremap <leader>ee <ESC>:call EditVimrc()<CR>
nnoremap <S-A-h> :tabpre<CR>
nnoremap <S-A-l> :tabnext<CR>
nnoremap <leader>dfc :call DragonflyCmdProcess(0)<CR>
vnoremap <leader>dfc :call DragonflyCmdProcess(1)<CR>
nnoremap <a--1q> :exe "tabn ".g:lasttab<CR>
nnoremap <leader>kew :%s/\v[^a-zA-Z ]//g
nnoremap <leader>rm :%s/\v\r\n/\r/g<CR>
nnoremap <leader>n :call RunNotepad()<CR>
nnoremap z/ :if AutoHighlightToggle()<Bar>set hls<Bar>endif<CR>
nnoremap <leader>sw :%s/\v<<C-r><C-w>>//g<left><left>
nnoremap <esc> <esc>:w<CR>
nnoremap <c-f> <esc>/\v

""
set nu

" 设置着色模式和字体
" if g:isWIN
    " colorscheme molokai
    " " colorscheme solarized
    " " set guifont=monaco:h14
    " set guifont=Source\ Code\ Pro:h14
    " " set guifont=Caecilia\ LT\ Std\ Light:h14
    " set gfw=NSimsun:h14:cGB2312
    " " set guifontwide=YaHei\ monaco\ Hybrid:h14
    " " set guifontwide=微软雅黑:h14:cGB2312
" elseif g:isMAC
    " colorscheme molokai
    " set guifont=monaco:h14
" else
    " colorscheme molokai
    " set guifont=monaco\ 11
" endif

fu! SelectContent()
    " execute "normal ?[[(\"']\%<c-r>=line(\".\")\<cr>l\<cr>\<CR>"
    " find the last quotation mark
    execute "normal ?[\[\(\"']\<CR>" 
    "Store the mark in the varable `b`"
    let b:mc=matchstr(getline('.'), '\%' . col('.') . 'c.')
    if b:mc=="("
        let b:mc=")"
    elseif b:mc=="["
        let b:mc="]"
    elseif b:mc=="{"
        let b:mc="}"
    endif
    "select the content in the quota, here we get the b:mc to mark the symbol
    "we are going to find and replace the content we find"
    execute "normal lv/" . b:mc . "\<CR>hc"
endfunction

" Plugin
"关于状态栏的小配置
"Powerline setting
let g:airline_theme='molokai'
let g:airline_powerline_fonts = 1

"Plugin Config"
let g:mkdp_path_to_chrome = "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
    " 设置 chrome 浏览器的路径(或是启动 chrome(或其他现代浏览器)的命令)
    " 如果设置了该参数, g:mkdp_browserfunc 将被忽略

    let g:mkdp_browserfunc = 'MKDP_browserfunc_default'
    " vim 回调函数, 参数为要打开的 url

    let g:mkdp_auto_start = 0
    " 设置为 1 可以在打开 markdown 文件的时候自动打开浏览器预览,只在打开
    " markdown 文件的时候打开一次

    let g:mkdp_auto_open = 0
    " 设置为 1 在编辑 markdown 的时候检查预览窗口是否已经打开,否则自动打开预
    " 览窗口

    let g:mkdp_auto_close = 1
    " 在切换 buffer 的时候自动关闭预览窗口,设置为 0 则在切换 buffer 的时候不
    " 自动关闭预览窗口

    let g:mkdp_refresh_slow = 0
    " 设置为 1 则只有在保存文件,或退出插入模式的时候更新预览,默认为 0,实时
    " 更新预览

    let g:mkdp_command_for_global = 0
    " 设置为 1 则所有文件都可以使用 MarkdownPreview 进行预览,默认只有 markdown
    " 文件可以使用改命令

    let g:mkdp_open_to_the_world = 0
    " 设置为 1, 在使用的网络中的其他计算机也能访问预览页面
    " 默认只监听本地(127.0.0.1),其他计算机不能访问

call plug#begin('c:\Users\Administrator\AppData\Local\nvim\plugged\')
Plug 'iamcco/mathjax-support-for-mkdp'
Plug 'iamcco/markdown-preview.vim'
call plug#end()

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
iamccocommented, Nov 25, 2019

The plugin’s installation is not complete.

" If you don't have nodejs and yarn
" use pre build
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() } }

" If you have nodejs and yarn
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install'  }

if use the first one, try call mkdp#util#install() other wise go to the plugin direction run cd app && yarn install or cd app && npm install

0reactions
woshichuanqilzcommented, Nov 25, 2019

The plugin’s installation is not complete.

" If you don't have nodejs and yarn
" use pre build
Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() } }

" If you have nodejs and yarn
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install'  }

if use the first one, try call mkdp#util#install() other wise go to the plugin direction run cd app && yarn install or cd app && npm install

Done ! Thank you my bro!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix Chrome if it crashes or won't open - Computer
First, try restarting your modem and router. If this doesn't work, contact the website owner and let them know you've been having problems...
Read more >
Why Won't Google Chrome Open? 4 Ways to Troubleshoot
4 ways to troubleshoot Google Chrome if it won't open on your computer · 1. Press "Ctrl" + "Alt" + "Del" on your...
Read more >
Fix Chrome won't open or launch on Windows 11/10 PC
Fix Chrome won't open on Windows PC · Kill Chrome from Task Manager · Check if your Antivirus is blocking Chrome · Repair...
Read more >
[SOLVED] Google Chrome Not Opening (2022) - Driver Easy
1. Boot your PC into safe mode. (Click to see how to enter safe mode in Windows 10, 7, 8, 8.1, XP, or...
Read more >
Google Chrome Won't Open? Fix Chrome Not Opening with 7 ...
Tip 1. Restart Windows 10 Computer; Tip 2. Check If Chrome Is Already Opened; Tip 3. Scan for Malware/Virus Infection; Tip 4. Run...
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