Skip to content

Commit

Permalink
Merge branch 'hotfix/0.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
FuDesign2008 committed Jan 23, 2016
2 parents 1c88660 + 5b638f8 commit e6e0a04
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions after/ftplugin/markdown/viewer.vim
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let g:mdv_loaded = 1
let s:save_cpo = &cpo
set cpo&vim

let s:scriptPath = expand('<sfile>:hp')
let s:scriptPath = expand('<sfile>:p:h')

let s:theme_default = 'github2'
if !exists('g:mdv_theme')
Expand Down Expand Up @@ -168,15 +168,17 @@ endfunction

function! s:ViewMarkDown()
if !exists('b:temp_html_file')
let b:temp_html_file = expand('%p') . '_temp_.html'
let file_name = expand('%:t')
let file_path = expand('%:p:h')
let b:temp_html_file = file_path . '/.' . file_name . '.temp.html'
endif
call s:WriteHtml()
call s:OpenFile(b:temp_html_file)
endfunction

function! s:Markdown2Html()
if !exists('b:save_html_file')
let b:temp_html_file = expand('%p') . '.html'
let b:save_html_file = expand('%:p') . '.html'
endif
call s:WriteHtml()
endfunction
Expand Down

0 comments on commit e6e0a04

Please sign in to comment.