Skip to content
This repository has been archived by the owner on Jun 20, 2021. It is now read-only.

Commit

Permalink
View file with external app fixed for WIN32
Browse files Browse the repository at this point in the history
  • Loading branch information
zacco committed Apr 6, 2010
1 parent 2f3c9a9 commit 6b4d6dc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vimcommander.vim
Expand Up @@ -363,6 +363,11 @@ fu! <SID>FileView()
let opt=""
while strlen(name)>0
if filereadable(filename)
if has("unix")
cal system("(see ".shellescape(filename).") &")
else
echo filename
exec "silent ! start \"\" \"".substitute(filename, "/", "\\", "g")."\""
cal system("(see ".shellescape(filename).") &")
en
if strlen(b:vimcommander_selected)>0
Expand Down

0 comments on commit 6b4d6dc

Please sign in to comment.