saving and loading views

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

saving and loading views

Samuel Wright
Hi Guys, I used to have this in .vimrc

autocmd BufWinLeave * mkview
autocmd BufWinEnter * silent loadview

to automatically save and load folds. I have recently added it again,
but it does not seem to work in Vim 7 on Win XP.
Have I missed anything obvious?

Thanks

Sam
Reply | Threaded
Open this post in threaded view
|

Re: saving and loading views

Charles E Campbell Jr
Samuel Wright wrote:

> Hi Guys, I used to have this in .vimrc
>
> autocmd BufWinLeave * mkview
> autocmd BufWinEnter * silent loadview
>
> to automatically save and load folds. I have recently added it again,
> but it does not seem to work in Vim 7 on Win XP.
> Have I missed anything obvious?


Well, nothing pops to my mind right off, but I'd suggest ditching that
"silent" so
as to let vim forward any complaints it might have to your attention.  
At least
until you've got things working.

Regards,
Chip Campbell