Created
February 15, 2014 18:00
-
-
Save afternoon/9022843 to your computer and use it in GitHub Desktop.
Line bubble mappings with MacVim boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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