Ⅰ. 插件描述
Automatic sessions, per project (aka directory) basis, for vim editorⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'edsono/sessions'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'edsono/sessions'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'edsono/sessions'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/edsono/vim-sessions
Ⅳ. 文档说明
Vim-Sessions
Description
Vim-Sessions is an automatic session generator, per project (aka directory)
basis, for [Vim][] editor.
Install
Download the gzipball from Vim [script homepage][] and
open the package using [Vim][] and use the command :source %. Or run the
following command:
vim sessions-<version>.vba.gz +":source %"
Done! All files will be extracted in your [Vim][] home directory.
If you checkout from repository, install using the install task from
bake:
bake install
This instruction will be create a Vimball file and install.
Or, use git and [Pathogen][] plugin to manage your plugins in vim.
More information here:
http://tammersaleh.com/posts/the-modern-vim-config-with-pathogen
Usage
After installing, specify your code directories (the folder where you save your projects)
in your .vimrc:
let g:sessions_project_path = "$HOME/projects"
Now, when editing a file in folder under this dir, vim-session will consider a project. So
it will save sessions when saving and exiting vim.
When you start vim again, in a dir under the same folder, this session will be reloaded.
Information
You maybe contributes to source. So, send a feedback in [issue tracker][].
Vim-Sessions is hosted on following servers:
Visit the [script homepage][] for more information.
Copyright
Copyright (c) 2009 Edson Cesar <edsono@gmail.com>
"Sessions Vim Script homepage"
"Vim Editor"
"Vim-Sessions Github Issues"
"Bash-Toolbox Task Manager"
"Vim-Pathogen"