[vim] changes leader adds expand region plugin

This commit is contained in:
Josh Sherman 2016-11-25 20:02:13 -06:00
parent 271f17d7ec
commit 032ea356b8

View file

@ -92,6 +92,7 @@ Plugin 'tomtom/tlib_vim'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'bling/vim-bufferline'
Plugin 'hail2u/vim-css3-syntax'
Plugin 'terryma/vim-expand-region'
Plugin 'w0ng/vim-hybrid'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'pangloss/vim-javascript.git'
@ -176,6 +177,19 @@ let g:SuperTabDefaultCompletionType = 'context'
"
" inoremap <special> <expr> <Esc>[200~ XTermPasteBegin()
let mapleader = "\<Space>"
nnoremap <Leader>o :CtrlP<CR>
nnoremap <Leader>w :w<CR>
vmap <Leader>y "+y
vmap <Leader>d "+d
nmap <Leader>p "+p
nmap <Leader>P "+P
vmap <Leader>p "+p
vmap <Leader>P "+P
vmap v <Plug>(expand_region_expand)
vmap <C-v> <Plug>(expand_region_shrink)
vnoremap // y/<C-R>"<CR>
nmap <silent> ,/ :nohlsearch<CR>