using http://mislav.uniqpath.com/2011/12/vim-revisited/ as a starting point