Skip to content

Instantly share code, notes, and snippets.

@afternoon
Created February 15, 2014 18:00
Show Gist options
  • Save afternoon/9022843 to your computer and use it in GitHub Desktop.
Save afternoon/9022843 to your computer and use it in GitHub Desktop.
Line bubble mappings with MacVim boilerplate
if has("gui_macvim")
" move lines up and down and reindent correctly (clashes with quickfix menu
" mappings in runtime/menu.vim, so we remove those mappings first)
macm Tools.Older\ List key=<nop>
macm Tools.Newer\ List key=<nop>
nnoremap <D-C-Up> V:move '<-2<CR><Esc>
nnoremap <D-C-Down> V:move '>+1<CR><Esc>
vnoremap <D-C-Up> :move '<-2<CR>gv
vnoremap <D-C-Down> :move '>+1<CR>gv
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment