Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions autoload/previm.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function! previm#open(preview_html_file) abort
if has('win32') && g:previm_open_cmd =~? 'firefox'
" windows+firefox環境
call s:system(g:previm_open_cmd . ' "' . substitute(a:preview_html_file,'\/','\\','g') . '"')
elseif has('win32unix') || has('win64unix')
elseif has('win32unix')
call s:system(g:previm_open_cmd . ' ''' . system('cygpath -w ' . a:preview_html_file) . '''')
else
call s:system(g:previm_open_cmd . ' ''' . a:preview_html_file . '''')
Expand All @@ -25,7 +25,7 @@ function! previm#open(preview_html_file) abort
" fix temporary(the cause unknown)
if has('win32')
let path = fnamemodify(path, ':p:gs?\\?/?g')
elseif has('win32unix') || has('win64unix')
elseif has('win32unix')
let path = substitute(path,'\/','','')
endif
call s:apply_openbrowser('file:///' . path)
Expand Down Expand Up @@ -177,7 +177,7 @@ function! s:do_external_parse(lines) abort
" その時に混乱を招かないように設定でrst2htmlへのパスを持つことはしない
let candidates = ['rst2html.py', 'rst2html']
let cmd = ''
if has('win32') || has('win64')
if has('win32')
let candidates = reverse(candidates)
endif
for candidate in candidates
Expand Down