unite-session


Ⅰ. 插件描述

Update: Since session source is now included with Unite, you don't have to use this plugin anymore.

Ⅱ. 基本信息

创建日期:  2011-02-05
使用用户:  1
Github星:  7
插件作者:  Tung Dao

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'tungd/unite-session-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'tungd/unite-session-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'tungd/unite-session-forever-and-always'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/tungd/unite-session

Ⅳ. 文档说明

unite-session.vim

Description

Session source for unite.vim.
Based on unite-colorscheme by Ujihisa.

For quick opening your sessions saved in ~/.vim/sessions/.

Features

  1. Load the session files stored in ~/.vim/sessions/ or g:unite_session_path
  2. Actions: edit, delete sessions

Installation

  • Get the source from Github https://github.com/tungd/unite-session
    git clone https://github.com/tungd/unite-session.git
  • Copy autoload/unite/sources/session.vim and autoload/unite/kinds/session.vim
    to appropriate location (e.g ~/.vim/autoload/).

NOTE: Or use Tim Pope's pathogen plugin.

Options

  • g:unite_session_path: By default the plugin looks for session files in $HOME/.vim/sessions/
    on Mac OS and Linux, and $HOME/Documents/vimfiles/sessions on Windows. You can overdrive

this behavior by setting this variable.

  • g:unite_session_keep_buffers: By default when load new buffers the plugin will delete
    all current buffer. Set this options to keep your current buffers loading along side

session's buffers. NOTE: These current buffers will be save to session file at quit.

  • g:unite_session_force_no_update: The previous tips to keep the session automatically
    updated is now enabled by default. Set this options to disable it.

Bug report or feature request

You can report issues via Github or send me email (see Credits).

Credits

Author: Tung Dao <me@tungdao.com>. Special thanks to:

License

MIT License

添加新评论