Ⅰ. 插件描述
Simple session management for powerful vim users.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'manasthakur/vimsessionist'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'manasthakur/vimsessionist'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'manasthakur/vimsessionist'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/manasthakur/vimsessionist
Ⅳ. 文档说明
# Vim-Sessionist
Vim supports sessions!! This means you can create project-specific workspaces
(like IDEs), and open the saved workspaces directly. A session encompasses all
open files, the cursor-location within them, and other vim-options set while
creating the session.
vim-sessionist
is a light-weight wrapper over the session-management commands
in vim. It also automatically saves your session, when you close Vim, and lets
you restore it later.
Usage
Type the following commands in normal mode:
- Create a new session: SN
- Overwrite current session: SS
- Open a session: SO
- Restore previous session: SP (requires Vim 7.3+)
- Get name of current session: SC
- List existing sessions: SL
- Delete a session: SD
All the keybindings can be changed to suit your needs. Run :help Sessionist
post installation for instructions.
Installation
Use your favorite plugin-manager, or install manually.
Refer this article
for general help on managing plugins in Vim.
Star this repository on GitHub if you like the plugin.
Feel free to send bricks and bouquets to manasthakur17@gmail.com
.