sessionman我没有弄好,向大家推荐这个
session.vim
我的配置:
[vim]"configurations for session.vim
"
"要使得session.vim能自动保存和加载default.vim,需要先运行下SaveSession命令!
"
"let g:session_directory = $VIM '/vimfiles/sessions'
"By default this option is set to false (0). This means that when you start Vim without opening any files and the default session script exists,
"the session.vim plug-in will ask whether you want to restore your default session.
"When you set this option to true (1) and you start Vim without opening any files the default session will be restored without a prompt.
let g:session_autoload = 1
"By default this option is set to false (0). When you’ve opened a session and you quit Vim,
"the session.vim plug-in will ask whether you want to save the changes to your session.
"Set this option to true (1) to always automatically save open sessions when you quit Vim.
let g:session_autosave = 1[/vim]