tpope / vim-rsi

rsi.vim: Readline style insertion
http://www.vim.org/scripts/script.php?script_id=4359
583 stars 35 forks source link

Command-line CTRL-U, CTRL-Y #17

Closed justinmk closed 5 years ago

justinmk commented 10 years ago

ref https://github.com/tpope/vim-rsi/pull/1

justinmk commented 10 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.

justinmk commented 10 years ago

@tpope I've been using this for a couple weeks without issue. What are your thoughts? I can add <M-BS> too if appropriate.

belak commented 8 years ago

What are the chances of this ever getting merged in? It would be really nice to use C-u

justinmk commented 8 years ago

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?~

justinmk commented 5 years ago

Updated. Now only maps CTRL-U and CTRL-Y.

tpope commented 5 years ago

I worry a bit about re-purposing @-, but I guess I'll give it a try.