Skip to content

Instantly share code, notes, and snippets.

@nakamuray
Created September 21, 2016 05:57
Show Gist options
  • Save nakamuray/31346962468398f36aa722cd1e385874 to your computer and use it in GitHub Desktop.
Save nakamuray/31346962468398f36aa722cd1e385874 to your computer and use it in GitHub Desktop.
open webview within vim (gtk3 build)
python3 <<EOP
import gi
gi.require_version('Gtk', '3.0')
gi.require_version('WebKit2', '4.0')
from gi.repository import Gtk
from gi.repository import WebKit2
win = Gtk.Window()
win.set_size_request(640, 480)
view = WebKit2.WebView()
win.add(view)
view.load_uri('http://www.vim.org/')
win.show_all()
EOP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment