terrychou / iVim

A vim port to iOS.
599 stars 34 forks source link

Open html in Safari #156

Closed suliveevil closed 4 years ago

suliveevil commented 4 years ago

Is there a way to open html in Safari ? Like this :!openurl file:///private/var/mobile/Containers/Data/Application/D8F8FD33-A3C1-4605-B6C1-39E9AEC246AC/Documents/awesome-plugins-ivim.md.html or something similar.

Or we only can do that by build a server using python then :!openurl http://127.0.0.1/……… ?

htkm commented 4 years ago

Nice idea. I sometimes do this.

:term ++hidden python3 -m http.server 80<cr>
:iopenurl http://localhost<cr>

And there is index.html at ~ to help me see more.

suliveevil commented 4 years ago

Great approach!