python - What is the structure of a vim .swp file? -
an application wants shell text out vim , know edits being made, in real time.
the .swp file provides information. can provide guidance on how read binary file, say, python?
i wouldn't rely on swapfile contents real-time updates. format geared towards vim's uses, , format isn't documented other implementation. have duplicate large parts of algorithm, , maintain whenever internal format changes (without prior notice).
alternatively, use 1 of embedded languages (e.g. python) interface outside program wants real-time updates. python function periodically send along entire buffer contents on socket, example.
Comments
Post a Comment