Permalink
Browse files

Create bubble plugin.

  • Loading branch information...
1 parent 3f1ef02 commit ed57241d38989bfcdbbdeedc7cac12f537aa6572 @nelstrom committed Jan 21, 2012
Showing with 7 additions and 26 deletions.
  1. +7 −0 vim/plugin/bubble.vim
  2. +0 −26 vimrc
View
@@ -0,0 +1,7 @@
+" Move current line down/up
+map <C-Down> ]e
+map <C-Up> [e
+
+" Move visually selected lines down/up
+vmap <C-Down> ]egv
+vmap <C-Up> [egv
View
26 vimrc
@@ -173,29 +173,3 @@ command! -range=% -nargs=1 Refactor :<line1>,<line2>call Refactor(<args>)
" http://got-ravings.blogspot.com/2008/08/vim-pr0n-making-statuslines-that-own.html
" Always show the status line (even if no split windows)
set laststatus=2
-" Mappings for a recovering TextMate user {{{1
-" Indentation {{{2
-nmap <D-[> <<
-nmap <D-]> >>
-vmap <D-[> <gv
-vmap <D-]> >gv
-
-" Commenting {{{2
-" requires NERDCommenter plugin
-vmap <D-/> \\gv
-map <D-/> \\\
-
-" Duplicate selection {{{2
-"vmap <S-C-D> :copy'> <CR>V`[o
-"nmap <S-C-D> :copy .<CR>
-" Move selection {{{2
- " Move current line down/up
- map <C-Down> ]e
- map <C-Up> [e
- " Move visually selected lines down/up
- vmap <C-Down> ]egv
- vmap <C-Up> [egv
-" Move visual selection back/forwards
-set ww+=<,>
-vmap <C-Left> x<Left>P`[v`]
-vmap <C-Right> x<Right>P`[v`]

0 comments on commit ed57241

Please sign in to comment.