Skip to content
This repository has been archived by the owner on Feb 6, 2020. It is now read-only.

Mapping MarkdownPreview doesn't work in insert mode #79

Open
kubouch opened this issue Nov 29, 2018 · 2 comments
Open

Mapping MarkdownPreview doesn't work in insert mode #79

kubouch opened this issue Nov 29, 2018 · 2 comments

Comments

@kubouch
Copy link

kubouch commented Nov 29, 2018

I have the following settings in my .vimrc:

let g:mkdp_command_for_global = 1
nmap <silent> <F8> <Plug>MarkdownPreview
imap <silent> <F8> <Plug>MarkdownPreview
nmap <silent> <F9> <Plug>StopMarkdownPreview
imap <silent> <F9> <Plug>StopMarkdownPreview

Pressing F8 in insert mode opens a new Chrome tab with an empty preview. The tab can't be closed with F9 in any other mode. Both F8 and F9 work as expected in normal mode. Mapping to different key combos doesn't solve the problem.

Otherwise a great plugin! Definitely the best one from the few I've tried.

@iamcco
Copy link
Owner

iamcco commented Dec 3, 2018

sorry i can‘t reproduced this. maybe it's some issue when lanuch the service and browser

@kubouch
Copy link
Author

kubouch commented Dec 4, 2018

I tested it on two computers (Arch Linux and a musl-based Void Linux), both running dwm window manager and chromium web browser provided by the package manager.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants