Ⅰ. 插件描述
Automatically set vim's 'foldcolumn' when folds presentⅡ. 基本信息
|
Ⅲ. 安装方法
使用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
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.gitQuickstart
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 ENDUsage
Check out the docs (:help auto-origami).