Skip to content

adding C-U and C-Y bindings#1

Open
kasbah wants to merge 2 commits into
tpope:masterfrom
kasbah:master
Open

adding C-U and C-Y bindings#1
kasbah wants to merge 2 commits into
tpope:masterfrom
kasbah:master

Conversation

@kasbah

@kasbah kasbah commented Dec 17, 2012

Copy link
Copy Markdown

This uses the unamed register and actually executes a let command
to yank the current command text into the register. Maybe there
is a better way?

This uses the unamed register and actually executes a let command
to yank the current command text into the register. Maybe there
is a better way?
@tpope

tpope commented Dec 17, 2012

Copy link
Copy Markdown
Owner

Insert mode is right out. <C-Y> is already really handy there.

I'm really hesitant about command line mode too. People have very clear expectations about when the unnamed register will change, and this isn't one of those situations. Maybe we could use the small delete register (:help quote-) instead?

@kasbah

kasbah commented Dec 20, 2012

Copy link
Copy Markdown
Author

Huh, didn't know about <C-Y> in insert mode. That does seem useful.

@justinmk

Copy link
Copy Markdown
Contributor

This would also be useful for <C-W> (and <M-BS>).

@tpope

tpope commented Jul 18, 2014

Copy link
Copy Markdown
Owner

Heh, I reluctantly merged that <M-BS> in only because I couldn't object on conflict grounds.

@justinmk

Copy link
Copy Markdown
Contributor

Gave up on CTRL-W for now, but #17 works nicely for CTRL-U. This has been bugging me for about 10 years.

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

Successfully merging this pull request may close these issues.

3 participants