Ⅰ. 插件描述
Handle vim sessions like a proⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dhruvasagar/vim-prosession'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dhruvasagar/vim-prosession'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dhruvasagar/vim-prosession'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dhruvasagar/vim-prosession
Ⅳ. 文档说明
# VIM ProSession v0.5.6
A VIM plugin to handle sessions like a pro.
It leverages vim-obsession and allows switching between multiple sessions
cleanly, the idea is to maintain one session per project (directory) and
switch between them when we need to switch context, automatically loading
along with it the various files, settings etc ensuring compete isolation
between projects. Now there's little need to launch multiple vim instances for
separate sessions (projects), you can simply switch between them with ease.
ProSession uses a file name format similar to the undofile name format.:Prosession provides existing session paths from the sessions directory fromg:prosession_dir (set to ~/.vim/session/ by default) or also completes
paths from the file system which you can use to start new sessions for them.
For more details check :help prosession.
Change Log
See CHANGELOG.md
Requirements
Vim ProSession depends on
tpope/vim-obsession
Installation
- With NeoBundle:
NeoBundle 'dhruvasagar/vim-prosession', {'depends': 'tpope/vim-obsession'}- With Vundle
Plugin 'tpope/vim-obsession'
Plugin 'dhruvasagar/vim-prosession'- With Pathogen
cd ~/.vim/bundle
git clone git://github.com/tpope/vim-obsession.git
git clone git://github.com/dhruvasagar/vim-prosession.git