persist expanded dir in memory between invocations

Preserve the layout without saving the prefs to disk. Very very rough
first implementation. It needs to be improved and I need to learn
more vimscript, but for the moment it's enough for my needs.