Ⅰ. 插件描述
Toggles for VIM folding featuresⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jcorbin/vim-fold-toggle'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jcorbin/vim-fold-toggle'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jcorbin/vim-fold-toggle'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jcorbin/vim-fold-toggle
Ⅳ. 文档说明
# fold-toggle.vim
WARNING: early development, considered experimental
Provides toggle functions for folding features.
foldcolumn toggle
Simply toggles on/off the foldcolumn gutter, you'll need to add a
mapping to .vimrc for it, e.g.:
nmap <leader>fc <Plug>FoldToggleColumn"auto" fold toggle
The foldopen and foldclose settings of vim can provide a nice
experience where folds open and close automatically as the cursor
moves through them. You'll need to add a mapping to .vimrc for it,
e.g.:
nmap <leader>fo <Plug>FoldToggleAuto
set foldopen=all " optionally add these lines if you
set foldclose=all " want auto folding on initially.