# HG changeset patch # User zegervdv # Date 1394480234 -3600 # Node ID 09c60bc0fc3891bf5b7d33e4c8005390569561f3 # Parent dd1519fc21e3b2a4c1e72e6bfbacd8f52ff7bb5a Add vim-textmanip for visual block dragging diff -r dd1519fc21e3 -r 09c60bc0fc38 .hgsub --- 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 diff -r dd1519fc21e3 -r 09c60bc0fc38 .hgsubstate --- 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 diff -r dd1519fc21e3 -r 09c60bc0fc38 vimrc --- 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 H DVB_Drag('left') -vmap L DVB_Drag('right') -vmap J DVB_Drag('down') -vmap K DVB_Drag('up') -vmap 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 (smalls) xmap s (smalls) +" Textmanip +xmap (textmanip-move-down) +xmap (textmanip-move-up) +xmap (textmanip-move-left) +xmap (textmanip-move-right) +xmap (textmanip-toggle-mode) + " Load local vimrc if filereadable($HOME . "/.vimrc.local") source ~/.vimrc.local