Skip to content

Instantly share code, notes, and snippets.

@bfredl
bfredl / nvim-terminal-edit.py
Last active March 1, 2024 01:02 — 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."""
from __future__ import print_function
import os
import sys
from neovim import attach
args = sys.argv[1:]
if not args: