Add y/p key more flexible for multiple lines copy/paste.

From http://sheerun.net/2014/03/21/how-to-boost-your-vim-productivity/.
This commit is contained in:
Gea-Suan Lin
2014-03-22 12:30:39 +08:00
parent 0829ac6796
commit 99bc6e06af

View File

@@ -39,8 +39,11 @@ highlight Search cterm=none ctermbg=blue
nmap <Esc>[Z <C-w>W nmap <Esc>[Z <C-w>W
nmap <F8> :TagbarToggle<CR> nmap <F8> :TagbarToggle<CR>
nmap <Tab> <C-w>w nmap <Tab> <C-w>w
nnoremap <silent> p p`]
vmap <C-v> <Plug>(expand_region_shrink) vmap <C-v> <Plug>(expand_region_shrink)
vmap v <Plug>(expand_region_expand) vmap v <Plug>(expand_region_expand)
vnoremap <silent> p p`]
vnoremap <silent> y y`]
" "
filetype off filetype off
set rtp+=~/.vim/bundle/vundle/ set rtp+=~/.vim/bundle/vundle/