Skip to content

Instantly share code, notes, and snippets.

View DogLooksGood's full-sized avatar
🥌
Debugging

tianshu DogLooksGood

🥌
Debugging
View GitHub Profile
@DogLooksGood
DogLooksGood / nvim-terminal-edit.py
Last active April 6, 2016 12:27 — forked from tarruda/nvim-terminal-edit.py
Edit file in host Neovim instance from a :terminal buffer
#!/usr/bin/env python
"""Edit a file in the host nvim instance."""
import os
import sys
from neovim import attach
args = sys.argv[1:]
if not args:
print "Usage: {} <filename> ...".format(sys.argv[0])