Ⅰ. 插件描述
A Vim plugin which mimics Textmate's «bubbling» feature.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'frace/vim-bubbles'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'frace/vim-bubbles'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'frace/vim-bubbles'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/frace/vim-bubbles
Ⅳ. 文档说明
# What is vim-bubbles?
vim-bubbles is a plugin for the Vim editor.
It mimics a well known feature, to my knowledge introduced by Textmate,
later adopted by Sublime Text, sometimes called «text bubbling».
A set of keys allows the user to move portions of lines vertically in normal and visual mode.
In addition horizontal «bubbling» is possible, too - actually it is simple indentation mapped
to a defined set of keys.
Get it!
If you don't use a plugin manager, I recommend to use vim-plug.
Else I'm pretty sure you know how your personal plugin management works. ;)
Configuration
" Choose an arbitrary leader key - default <C>.
let g:bubbles_leader = '<C>'
" Choose a set of keys: 'hjkl' || 'arrows' - default 'hjkl'.
let g:bubbles_keyset = 'hjkl'Usage
Default mappings reflect actions below:
<C-h>: Indents one or more lines.<C-j>: Moves one or more lines down.<C-k>: Moves one or more lines up.<C-l>: Unindents one or more lines.
Bugs
You are welcome to report bugs at the project bugtracker at github.com.
Credits:
- Plugin name inspired by Drew Neil's vimcast episode «Bubbling text»
- Plugin idea inspired by Textmate