-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
希望设置和系统剪贴板交互的快捷键 #75
Labels
Comments
9.0版本暂不解决, 没找到满意的键位/插件 https://github.com/vim-scripts/YankRing.vim 待处理 |
参考spf13:
|
现在好像原生的 "+y 和 "+p 也无法复制粘贴吗? @yangjiandong 这一段代码的作用是什么?用起来好像把 "+y / "+p 映射成文件内的复制粘贴了? |
|
USE=X emerge vim " share system clipboard
if has('clipboard')
if has('unnamedplus') " When possible use + register for copy-paste
set clipboard=unnamed,unnamedplus
else " On mac and Windows, use * register for copy-paste
set clipboard=unnamed
endif
endif |
$ vim --version | grep clipboard
我建议 @wklken 可以在配置文件里默认全局都是vim与系统剪切板交互: set clipboard=unnamed 个人觉得这样比较方便些。 |
andyt9527
pushed a commit
to andyt9527/vim_config
that referenced
this issue
Jul 17, 2020
🎨 Refactor core_config.vim. Make the design clearer. Close wklken#75
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
建议代码:
" ,c 复制至公共剪贴板
vmap c "+y
" ,a 复制所有至公共剪贴板
nmap a ggVG"+y
" ,v 从公共剪贴板粘贴
imap v "+p
nmap v "+p
vmap v "+p
The text was updated successfully, but these errors were encountered: