Recently my system become unstable because of a mysterious memory leak. As a result I have the Xorg process frequently killed with Out of memory entry in the /var/log/syslog.
To save my vim session in case of crashes I run it within screen.
Unfortunately, after Xorg is killed I am unable to recovery the vim session. The reattached shell is totally messed. So far every time I was trying to exit vim by issuing :qa command at blind. Then with every press of Enter I get prompt in the same line.
I suspect the vim is not running (have to validate it after next crash) since:
- despite I issued the
:qacommand, newvimsession warns me about presence of the swap file, - I can see the
:qacommand in my.bash_historyfile.
Recovery after close of terminal emulator window works fine.
What (but fixing the memory leak) may I do to preserve my vim session?
Versions: vim - 7.4.52, screen - 4.01.00devel, Ubuntu - 14.04.5
[EDIT]
vim is definitively not running after crash - today I found a message ICE default IO error handler doing an exit(), pid = 12810, errno = 11 in the resumed screen window.
(still running)next to the Process ID. If not, you can safely go on to recover from swap and then delete it. – muru Feb 14 '17 at 10:52