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

Mapping MarkdownPreview doesn't work in insert mode #79

Description

@kubouch

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions