Ⅰ. 插件描述
A Vim Plugin for Breakin' Long LinesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'adarsh/electric-boogaloo-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'adarsh/electric-boogaloo-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'adarsh/electric-boogaloo-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/adarsh/electric_boogaloo.vim
Ⅳ. 文档说明
electric_boogaloo.vim

electric_boogaloo is designed to make breakin' long lines faster in vim.
Plugin is a direct copy of this script from the Vim wiki.
Installation
Using Vundle:
$ echo "Bundle 'adarsh/electric_boogaloo.vim'" >> ~/.vimrc
$ vim +BundleInstall
Usage
Insert newline after each '(' and ')' in current line.
:Breakin ( )
Same, in lines 10 to 20 inclusive.
:10,20Breakin ( )
Same, whole buffer.
:%Breakin ( )
Insert newline before each '(' and ')' in current line.
:Breakin! ( )
Insert newline after each occurrence of last-used search pattern.
:%Breakin
Insert newline before each occurrence of last-used search pattern.
:%Breakin!
License
Copyright (c) Adarsh Pandit. Distributed under the same terms as Vim itself.
See :help license.