Closed justinmk closed 5 years ago
@tpope Fully implemented ctrl-w and ctrl-u. General idea is to compare getcmdline()
before & after using Vim's built-in ctrl-u/ctrl-w. Also verified that this works with multibyte characters in various combinations.
@tpope I've been using this for a couple weeks without issue. What are your thoughts? I can add <M-BS>
too if appropriate.
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.
~Also there's a question of what CTRL-U should do in insert-mode: should it also store in @-
register?~
Updated. Now only maps CTRL-U and CTRL-Y.
I worry a bit about re-purposing @-
, but I guess I'll give it a try.
ref https://github.com/tpope/vim-rsi/pull/1
@-
register@-
register