Mercurial > dotfiles.old
changeset 14:09c60bc0fc38
Add vim-textmanip for visual block dragging
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 10 Mar 2014 20:37:14 +0100 |
parents | dd1519fc21e3 |
children | 4e87e8610500 |
files | .hgsub .hgsubstate vimrc |
diffstat | 3 files changed, 9 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgsub Mon Mar 10 20:32:06 2014 +0100 +++ b/.hgsub Mon Mar 10 20:37:14 2014 +0100 @@ -42,3 +42,4 @@ vim/bundle/neosnippet-snippets = [git]https://github.com/Shougo/neosnippet-snippets.git vim/bundle/ag = [git]https://github.com/rking/ag.vim.git vim/bundle/smalls = [git]https://github.com/t9md/vim-smalls.git +vim/bundle/textmanip = [git]https://github.com/t9md/vim-textmanip.git
--- a/.hgsubstate Mon Mar 10 20:32:06 2014 +0100 +++ b/.hgsubstate Mon Mar 10 20:37:14 2014 +0100 @@ -37,6 +37,7 @@ 60f25648814f0695eeb6c1040d97adca93c4e0bb vim/bundle/tabular fdceb4ea7112fe58c25556c3f7b06485cf0337cb vim/bundle/tagbar 413aee121785b492e5934509d65ead21c7401519 vim/bundle/tcomment +f9ba6df8838be0fcf8fb763459bfac35c5df2e78 vim/bundle/textmanip c9b900786a27ed5d72d08bedc4417a8e6d2abd61 vim/bundle/tlib 7bfdda29120dbab0787c966dd35db025305675e1 vim/bundle/tomdoc 6c7b03a2a0abdfd0dabd26602f8a32955abe0181 vim/bundle/vhdl
--- a/vimrc Mon Mar 10 20:32:06 2014 +0100 +++ b/vimrc Mon Mar 10 20:37:14 2014 +0100 @@ -138,14 +138,6 @@ highlight IndentGuidesEven guibg=background highlight IndentGuidesOdd guibg='#282a2e' -" Visual Block Dragging -vmap <expr> H DVB_Drag('left') -vmap <expr> L DVB_Drag('right') -vmap <expr> J DVB_Drag('down') -vmap <expr> K DVB_Drag('up') -vmap <expr> D DVB_Duplicate() -let g:DVB_TrimWS = 1 - " Show trailing whitespaces " exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~" " set list @@ -350,6 +342,13 @@ omap s <Plug>(smalls) xmap s <Plug>(smalls) +" Textmanip +xmap <C-j> <Plug>(textmanip-move-down) +xmap <C-k> <Plug>(textmanip-move-up) +xmap <C-h> <Plug>(textmanip-move-left) +xmap <C-l> <Plug>(textmanip-move-right) +xmap <F10> <Plug>(textmanip-toggle-mode) + " Load local vimrc if filereadable($HOME . "/.vimrc.local") source ~/.vimrc.local