Skip to content

Instantly share code, notes, and snippets.

@cloud8421
Created March 2, 2012 13:28
Show Gist options
  • Save cloud8421/1958373 to your computer and use it in GitHub Desktop.
Save cloud8421/1958373 to your computer and use it in GitHub Desktop.
Vim bubbling text with Tmux compatibility fix
"Bubble single lines (kicks butt)
"http://vimcasts.org/episodes/bubbling-text/
nmap <C-Up> ddkP
nmap <C-Down> ddp
nmap <C-Left> <<
nmap <C-Right> >>
"Horizontal bubbling
vnoremap < <gv
vnoremap > >gv
"Keep selection
nmap gV `[v`]
"Bubble multiple lines
vmap <C-Up> xkP`[V`]
vmap <C-Down> xp`[V`]
vmap <C-Right> >gv
vmap <C-Left> <gv
map ^[[A <C-Up>
map ^[[B <C-Down>
map ^[[D <C-Left>
map ^[[C <C-Right>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment