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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -