Add these in ~/.vimrc:
# vim ~/.vimrc
" Save the current vim sessions
noremap <F2> :mksession! ~/vim_session <cr>
" Load the saved vim sessions
noremap <F3> :source ~/vim_session <cr>
Reference:
https://stackoverflow.com/questions/1416572/vi-vim-restore-opened-files
No comments:
Post a Comment