~dricottone/vim-markdown-preview

5032eae3b24f2f8d31d223f57f4aeac62b1c3cfe — Jamshed Vesuna 8 years ago 956b154 + a864be5
Merge pull request #24 from rpoddighe/master

Correctly handle spaces in local filepaths
1 files changed, 4 insertions(+), 5 deletions(-)

M plugin/vim-markdown-preview.vim
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +4 -5
@@ 97,10 97,9 @@ function! Vim_Markdown_Preview_Local()
  let curr_file = expand('%:p')

  if g:vim_markdown_preview_github == 1
    call system('grip "' . curr_file . '" --export ' . curr_file . '.html')
    call system('grip "' . curr_file . '" --export "' . curr_file . '".html')
  else
    call system('markdown "' . curr_file . '" > ' . curr_file . '.html')

    call system('markdown "' . curr_file . '" > "' . curr_file . '".html')
  endif

  if OSNAME == 'unix'


@@ 121,12 120,12 @@ function! Vim_Markdown_Preview_Local()
  endif

  if OSNAME == 'mac'
    call system('open -g ' . curr_file . '.html')
    call system('open -g "' . curr_file . '".html')
  endif

  if g:vim_markdown_preview_temp_file == 1
    sleep 200m
    call system('rm ' . curr_file . '.html')
    call system('rm "' . curr_file . '".html')
  endif
endfunction