Skip to content

Commit

Permalink
将系统剪切板内容粘贴到vim
Browse files Browse the repository at this point in the history
  • Loading branch information
chxuan committed Oct 24, 2019
1 parent 60f6924 commit 2cc77f1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,12 @@ nnoremap <c-k> <c-w>k
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
"复制当前选中到系统剪切板
" 复制当前选中到系统剪切板
vmap <leader><leader>y "+y
" 将系统剪切板内容粘贴到vim
nnoremap <leader><leader>p "+p
" 打开文件自动定位到最后编辑的位置
autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | execute "normal! g'\"" | endif

Expand Down

0 comments on commit 2cc77f1

Please sign in to comment.