vim 快捷键

nnoremap <leader>ca :execute 'normal! ggVG"*yG'<cr>
nnoremap <leader>cp :execute 'normal! "*pG'<cr>

nnoremap <Leader>ev :vsplit $MYVIMRC<cr>
nnoremap <Leader>sv :source $MYVIMRC<cr>

nnoremap <leader>g :silent execute "grep! -R ". shellescape(expand("<cWORD>"))." ."<cr>:copen<cr>

你可能感兴趣的:(vim 快捷键)