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.
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. ;)
" 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'
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.
You are welcome to report bugs at the project bugtracker at github.com.
- Plugin name inspired by Drew Neil's vimcast episode «Bubbling text»
- Plugin idea inspired by Textmate