add operation yank-to-last-character-of-line#778
Conversation
...to allow mapping `Y` to do this instead of yanking the entire line.
|
Any reason you can't create a mapping to do this with the existing yank command and a motion like you would in vim? ( |
|
I suspect the reason is that composing vim-mode's commands can really only be done inside vim-mode; perhaps we need some kind of API for that? Time to look at what those services are all about. |
|
Oh, combining motions outside of vim-mode is possible: here's what I have in my And then in the This could, however, be easier. |
|
I think this should be possible in the author’s own configuration by combining |
|
Vim doesn't provide one, so my vote (initially) is 'no' |
|
Oh, wait, I misunderstood the question earlier. Initially, I said 'no' because I wasn't in agreement with providing a default mapping for |
|
I do have a personnal maps =
'<a-k>': '5k'
'<a-j>': '5j'
'<a-d>': '<c-d>'
'<a-u>': '<c-u>'
nmaps =
'<CR>': 'o<esc>'
'<S-CR>': 'O<esc>'
'Y': 'y$'
'S': 'v$hs'If you're interested I could try to bundle something. |
|
As stated in the README, this package is no longer maintained and is deprecated. We recommend that people use the vim-mode-plus package instead. Because of this, we are archiving this repository and closing all issues and pull requests. Thanks very much for your support and contributions! |
...to allow mapping
Yto do this instead of yanking the entire line.