-
-
Notifications
You must be signed in to change notification settings - Fork 36
Command-line CTRL-U, CTRL-Y #17
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
Conversation
@tpope Fully implemented ctrl-w and ctrl-u. General idea is to compare |
plugin/rsi.vim
Outdated
endfunction | ||
|
||
cnoremap <expr> <SID>(ctrl_u) <SID>ctrl_u() | ||
cmap <script> <C-U> <SID>(ctrl_u)<C-U> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Used this approach similar to <C-T>
below, because <c-\>e
was causing unpleasant flicker.
@tpope I've been using this for a couple weeks without issue. What are your thoughts? I can add |
What are the chances of this ever getting merged in? It would be really nice to use C-u |
I can send an updated PR without the CTRL-W stuff. After using it for a long time I think CTRL-W is more trouble than it is worth. For it to be useful it needs to "append" as readline does, and that would be a lot of fiddly code. However CTRL-U is definitely useful and works without issue.
|
Updated. Now only maps CTRL-U and CTRL-Y. |
I worry a bit about re-purposing |
ref #1
@-
register@-
register