~dricottone/vim-markdown-preview

24b44d5c9d9d5a83d14211d421fa9a03ef75d596 — Torben 8 years ago 6372ce6 + 08491a2
Merge branch 'master' into osx_improvements
4 files changed, 13 insertions(+), 13 deletions(-)

M README.md
D images/screenshot-with-images.gif
D images/screenshot.gif
M plugin/vim-markdown-preview.vim
M README.md => README.md +2 -4
@@ 5,7 5,7 @@ Vim Markdown Preview
- [Installation](#installation)
- [Usage](#usage)
- [Requirements](#requirements)
    - [Max OS X](#mac-os-x)
    - [Mac OS X](#mac-os-x)
    - [Unix](#unix)
- [Options](#options)
    - [Image rendering & save on buffer write](#toggle)


@@ 22,7 22,7 @@ A small Vim plugin for previewing markdown files in a browser.

The aim of this plugin is to be light weight with minimal dependencies. Thus, there is *no* polling engine or webserver involved.

![Screenshot](images/screenshot.gif?raw=true "Preview on buffer write using Unix")
![Screenshot](http://i.imgur.com/1hvnXwA.gif?raw=true "Preview on buffer write using Unix")

Installation
------------


@@ 159,5 159,3 @@ Behind The Scenes
2. Next, this plugin either opens the html file or refreshes the Google Chrome or Safari tab.
    * If you are using GitHub flavoured markdown, `grip` will make a call to the GitHub API and retrieve the html.
3. Lastly, if you choose, this plugin will remove the temporary file.

![Screenshot](images/screenshot-with-images.gif?raw=true "Render images and preview on buffer write using Mac OS X")

D images/screenshot-with-images.gif => images/screenshot-with-images.gif +0 -0
D images/screenshot.gif => images/screenshot.gif +0 -0
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +11 -9
@@ 7,17 7,19 @@ let g:vmp_script_path = resolve(expand('<sfile>:p:h'))

let g:vmp_osname = 'Unidentified'

if has('win32')
if has('win32') || has('win64')
  " Not yet used
  let g:vmp_osname = 'win32'
endif
if has('unix')
  let g:vmp_osname = 'unix'
endif
if has('mac')
  let g:vmp_osname = 'mac'
  let g:vmp_search_script = g:vmp_script_path . '/applescript/search-for-vmp.scpt'
  let g:vmp_activate_script = g:vmp_script_path . '/applescript/activate-vmp.scpt'
elseif has('unix')
  let s:uname = system("uname")

  if has('mac') || has('macunix') || has("gui_macvim") || s:uname == "Darwin\n"
    let g:vmp_osname = 'mac'
    let g:vmp_search_script = g:vmp_script_path . '/applescript/search-for-vmp.scpt'
    let g:vmp_activate_script = g:vmp_script_path . '/applescript/activate-vmp.scpt'
  else
    let g:vmp_osname = 'unix'
  endif
endif

if !exists("g:vim_markdown_preview_browser")