LastBuf.vim


Ⅰ. 插件描述

open last closed buffer

Ⅱ. 基本信息

创建日期:  2011-12-01
使用用户:  8
Github星:  6
插件作者:  Rykka f

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'rykka/lastbuf-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'rykka/lastbuf-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'rykka/lastbuf-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/rykka/lastbuf.vim

Ⅳ. 文档说明

##Lastbuf

lastbuf.vim is a plugin to open your last closed buffers.

You can reopen your last closed buffer by :LastBuf or <c-w><c-z>.

buffers closed by :hid will always be opened.

buffers closed by :e # :q :only :close :bun will be reopened by default.

buffers closed by :bd will not be reopened by default.

buffers closed by :bw (!!CAUTION) will never be reopened.

NOTE Close buffer which still have another window editing it

      will not be reopened.

you can get the newest version at https://github.com/Rykka/lastbuf.vim

":LastBuf mapping is <c-w><c-z> by default.
" You can remapping it by 
map <c-s-t> :LastBuf<CR>

" g:lastbuf_num option decides the max reopen buf number.
let g:lastbuf_num=20

" this option decides to reopen which level of hided buffer.
" :hid   bufhidden  (will always be reopened)
" :bun   bufunload  (will be reopened if level >= 1)
" :bd    bufdelete  (will be reopened if level >= 2)
" :bw    bufwipeout (will never be reopened!CAUTION!!)
" default is 1 , means :bd and :bw not be reopened.
" if you want the same effect of 'nohidden'. 
" set it to 0 and  set 'nohidden'
let g:lastbuf_level=1

添加新评论