comparison vimrc @ 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 17afab9bd228
comparison
equal deleted inserted replaced
13:dd1519fc21e3 14:09c60bc0fc38
136 let g:indent_guides_auto_colors = 0 136 let g:indent_guides_auto_colors = 0
137 let g:indent_guides_guide_size = 1 137 let g:indent_guides_guide_size = 1
138 highlight IndentGuidesEven guibg=background 138 highlight IndentGuidesEven guibg=background
139 highlight IndentGuidesOdd guibg='#282a2e' 139 highlight IndentGuidesOdd guibg='#282a2e'
140 140
141 " Visual Block Dragging
142 vmap <expr> H DVB_Drag('left')
143 vmap <expr> L DVB_Drag('right')
144 vmap <expr> J DVB_Drag('down')
145 vmap <expr> K DVB_Drag('up')
146 vmap <expr> D DVB_Duplicate()
147 let g:DVB_TrimWS = 1
148
149 " Show trailing whitespaces 141 " Show trailing whitespaces
150 " exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~" 142 " exec "set listchars=tab:\uBB\uBB,trail:\uB7,nbsp:~"
151 " set list 143 " set list
152 144
153 " Vim Math plugin; make simple calculations 145 " Vim Math plugin; make simple calculations
348 " Smalls 340 " Smalls
349 nmap s <Plug>(smalls) 341 nmap s <Plug>(smalls)
350 omap s <Plug>(smalls) 342 omap s <Plug>(smalls)
351 xmap s <Plug>(smalls) 343 xmap s <Plug>(smalls)
352 344
345 " Textmanip
346 xmap <C-j> <Plug>(textmanip-move-down)
347 xmap <C-k> <Plug>(textmanip-move-up)
348 xmap <C-h> <Plug>(textmanip-move-left)
349 xmap <C-l> <Plug>(textmanip-move-right)
350 xmap <F10> <Plug>(textmanip-toggle-mode)
351
353 " Load local vimrc 352 " Load local vimrc
354 if filereadable($HOME . "/.vimrc.local") 353 if filereadable($HOME . "/.vimrc.local")
355 source ~/.vimrc.local 354 source ~/.vimrc.local
356 endif 355 endif