I added the following code to my .vimrc:
\" save and restore folds when a file is closed and re-opened autocmd BufWinLeave *.* mkview autocmd BufWinEnter *.* sil
The view details get saved in view file in the vimfiles\view directory. A separate view file is created for every file you edit.
vimfiles\view