From 89e2fef1c013d811653fc674573caa17af0552f7 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 5 Oct 2018 11:42:13 +0900 Subject: [PATCH 1/2] Remove has('win64') --- autoload/previm.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/previm.vim b/autoload/previm.vim index 8fa4b6549..ec4820661 100644 --- a/autoload/previm.vim +++ b/autoload/previm.vim @@ -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 From ca44cd0340fd6d67e8093cfd87ef355e3f725d81 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Fri, 5 Oct 2018 11:44:26 +0900 Subject: [PATCH 2/2] Remove has('win64unix') --- autoload/previm.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/previm.vim b/autoload/previm.vim index ec4820661..7715c0c62 100644 --- a/autoload/previm.vim +++ b/autoload/previm.vim @@ -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 . '''') @@ -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)