vim-buftabs


Ⅰ. 插件描述

A plugin for buffer like the tabpages in statusline

Ⅱ. 基本信息

创建日期:  2014-08-20
使用用户:  1
Github星:  2
插件作者:  Masaki ISHIYAMA

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# The tabpages-like list of buffers

              __          ______        __        
             / /_  __  __/ __/ /_____ _/ /_  _____
            / __ \/ / / / /_/ __/ __ `/ __ \/ ___/
           / /_/ / /_/ / __/ /_/ /_/ / /_/ (__  ) 
          /_.___/\__,_/_/  \__/\__,_/_.___/____/  

buftabs.gif

This is a simple script that shows a tabs-like list of buffers in the bottom of the window. The biggest advantage of this script over various others is that it does not take any lines away from your terminal, leaving more space for the document you're editing. The tabs are only visible when you need them - when you are switchin between buffers.

Features

  • Can manage the some buffers at a statusline.
  • Do NOT need some commands to display buffers such as :ls and :buffers.
  • Can display a full path.
  • Highlight support active or inactive buffers.

Commands

Toggles the buftabs on and off.

:BuftabsToggle

Enables the buftabs for the current buffer and any other buffer upon entering it.

:BuftabsEnable

Disables the buftabs for the current buffer and any other buffer upon entering it.

:BuftabsDisable

Options

For more information, see doc/buftabs.txt

let g:buftabs_enabled = 1
let g:buftabs_in_statusline = 1
let g:buftabs_in_cmdline = 0
let g:buftabs_only_basename = 1
let g:buftabs_active_highlight_group = "Visual"
let g:buftabs_inactive_highlight_group = ""
let g:buftabs_statusline_highlight_group = ""
let g:buftabs_marker_start = "["
let g:buftabs_marker_end = "]"
let g:buftabs_separator = "-"
let g:buftabs_marker_modified = "!"

About

Links:

Credits:

Contact:

  • Twitter: @b4b4r07
  • Email: <b4b4r07@gmail.com>

Bug reports, feedback, suggestions etc are welcomed.

License:

GNU GPL.

添加新评论