AutoOrigami.vim


Ⅰ. 插件描述

Automatically set vim's 'foldcolumn' when folds present

Ⅱ. 基本信息

创建日期:  2017-08-26
使用用户:  5
Github星:  11
插件作者:  David Knoble

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

# vim-auto-origami

This project is considered finished

Automatically set vim's 'foldcolumn' when folds present

Check it out on vim.org
too.

Installation

I recommend using Pathogen for managing
plugins.

Then it's just a quick

cd ~/.vim/bundle
git clone https://github.com/benknoble/vim-auto-origami.git

Quickstart

Drop the following in your vimrc, and open a file with some folds

augroup autofoldcolumn
  au!

  " Or whatever autocmd-events you want
  au CursorHold,BufWinEnter,WinEnter * AutoOrigamiFoldColumn
augroup END

Usage

Check out the docs (:help auto-origami).

添加新评论