doctabs


Ⅰ. 插件描述

Vim plugin for organizing a file into sections that look and feel like tabs

Ⅱ. 基本信息

创建日期:  2017-02-17
使用用户:  1
Github星:  22
插件作者:  Janos Barbero

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Overview

DocTabs: a vim plugin for organizing a file into sections

Author: Janos Barbero <jbarbero@cs.washington.edu>

DocTabs is like having screen/tmux for a single buffer. Vim already
lets you manage different buffers very efficiently, but within a
buffer you are limited to jumping by searches or tags. With DocTabs,
however, you can organize a large file into sections, which you can
visualize and jump between. Each section keeps its own editing view
so you can jump back to where you were easily. The prefix-style
switching should be familiar to screen/tmux users. The tabline is
used to show all the sections and highlight the currently active
one, hence the plugin's name.

This is useful for a wide range of scenarios: documentation, source
code, HTML, project plans, todo or GTD files, reminder files,
journals, novels, your ~/.vimrc, etc. The DocTabs plugin and
documentation were both written using DocTabs.

For more information, check out doc/doctabs.txt

DocTabs is released under the GNU General Public License, version 3.

Asciicast

asciicast

Versions

  • 0.9 Allow spaces in section names, pick up section changes sooner
  • 0.8 Allow user-specified switching prefix
  • 0.7 Allow alphanumeric tab labels for easier switching
  • 0.6 Handle tabline overflow rendering
  • 0.5 Highlight section headings, only update views when using jumps
  • 0.4 Optional folding of other sections
  • 0.3 Navigation functions to switch between sections
  • 0.2 Save context for each section
  • 0.1 Render tabline

添加新评论