Skip to content
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

Use different key than "c" #2

Open
davidpdrsn opened this issue Jun 3, 2015 · 7 comments
Open

Use different key than "c" #2

davidpdrsn opened this issue Jun 3, 2015 · 7 comments

Comments

@davidpdrsn
Copy link

I find that when I've selected something in visual mode and hit "c" to change it, I have to wait like a second before Vim reacts. This is probably because Vim is waiting to see if I type "cp".

Using another key than "cp" would probably fix this.

What do you think?

@davidpdrsn
Copy link
Author

I've also found that "cp" conflicts with https://github.com/tpope/vim-fireplace

@christoomey
Copy link
Owner

I'm leaning towards removing the cp visual mode mapping. Likewise, I think making the mapping fail if an existing one exists would be good, with instructions as to how to define an alt mapping.

Thanks for reporting!

bounceme added a commit to bounceme/vim-system-copy that referenced this issue May 9, 2017
christoomey pushed a commit that referenced this issue May 9, 2017
@MahbubAlam231
Copy link

MahbubAlam231 commented Nov 28, 2018

What about zy (syztem yank) instead of cp; zyy instead of cP; and zp (syztem paste) instead of cv? They are free as well (as far as I know) and one wouldn't have this visual mode problem as well.

@voyeg3r
Copy link

voyeg3r commented Mar 27, 2019

I would suggest <Leader>c wich will not clonflict with any other mapping, I guess!

@pablopunk
Copy link

Any thoughts on this @christoomey ?

@isakhammer
Copy link

Any way to change mappings of c?

@MahbubAlam231
Copy link

MahbubAlam231 commented Sep 10, 2020

@isakhammer @pablopunk I have forked christoomey's repo here and use zy (syztem yank) instead of cp, zyy to copy whole line and zp (syztem paste) to paste. But I suppose you can also put the following in your .vimrc:

 nmap zy <Plug>SystemCopy
 xmap zy <Plug>SystemCopy
 nmap zyy <Plug>SystemCopyLine
 nmap zp <Plug>SystemPaste

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants