From e6729c07f2a7e4d501cffe2125f47dc0628852d9 Mon Sep 17 00:00:00 2001 From: Jamshed Vesuna Date: Mon, 15 Sep 2014 20:12:31 -0700 Subject: [PATCH] Changed mapping to Ctrl-p instead of write until bux is fixed. --- README.md | 4 ++-- plugin/vim-markdown-preview.vim | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 31be125..10bec35 100644 --- a/README.md +++ b/README.md @@ -18,14 +18,14 @@ Requirements Usage ===== -When in a *.markdown or *.md file, vim-markdown-preview does the following on a write to the buffer: +When in a *.markdown or *.md file, vim-markdown-preview does the following when you type `Ctrl-p`: * If you are not previewing the current file: * Open an html rendered version of your file in Google Chrome in the background. * Otherwise: * Refresh your preview of the current markdown file in Google Chrome. -Uncomment the last line in `plugin/vim-markdown-preview.vim` to map `Ctrl-p` to the above instead of on write. +Uncomment the last line in `plugin/vim-markdown-preview.vim` to map a buffer write to the above instead of `Ctrl-p`. Behind The Scenes ================= diff --git a/plugin/vim-markdown-preview.vim b/plugin/vim-markdown-preview.vim index 77e1bc4..2cf0099 100644 --- a/plugin/vim-markdown-preview.vim +++ b/plugin/vim-markdown-preview.vim @@ -21,5 +21,5 @@ function! Vim_Markdown_Preview() call system('rm /tmp/vim-markdown-preview.html') endfunction -autocmd BufWritePost *.markdown,*.md :call Vim_Markdown_Preview() -"autocmd Filetype markdown,md map :call Vim_Markdown_Preview() +autocmd Filetype markdown,md map :call Vim_Markdown_Preview() +"autocmd BufWritePost *.markdown,*.md :call Vim_Markdown_Preview() -- 2.45.2