Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Shift-Y Does Not Yank Full Line #28

Closed
xcthulhu opened this issue Apr 14, 2014 · 7 comments
Closed

Shift-Y Does Not Yank Full Line #28

xcthulhu opened this issue Apr 14, 2014 · 7 comments

Comments

@xcthulhu
Copy link

shift-y is a synonym for yy in vim... and yy is implemented correctly, so this should be straightforward to fix...

@ibdknox
Copy link
Member

ibdknox commented Apr 14, 2014

shift-y is not a synonym, it's something explicitly different: "copy to the end of the line".

You can map shift-y for yourself using the Vim: map vim keys behavior, if you want though :)

@xcthulhu
Copy link
Author

Really? Because copying the line is the specified behavior in the docs:

https://github.com/michalliu/gvimim/blob/master/vim73/doc/change.txt#L905

                                                    *Y*

["x]Y yank [count] lines [into register x](synonym for
yy, |linewise|). If you like "Y" to work from the
cursor to the end of line (which is more logical,
but not Vi-compatible) use ":map Y y$".

I suppose it isn't very logical, and it's obscure enough it probably doesn't matter...

On Apr 14, 2014, at 12:02 PM, Chris Granger notifications@github.com wrote:

shift-y is not a synonym, it's something explicitly different: "copy to the end of the line".

You can map shift-y for yourself using the Vim: map vim keys behavior, if you want though :)


Reply to this email directly or view it on GitHub.

@cldwalker
Copy link
Member

@xcthulhu We are dependent on CodeMirror for their vim implementation. You can confirm with their demo, it's intentional behavior. Please open an issue with them.

@shamrin
Copy link
Contributor

shamrin commented Nov 28, 2014

By the way, this issue was discussed in codemirror/codemirror5/issues/2643. CodeMirror intentionally breaks blind compatibility with vi/vim, because this way Y, C and D all work from cursor to the end of the line. Even vim doc says it's more logical :)

@mbylstra
Copy link

I'm on Light Table 0.8.0-alpha Linux with the plugin Vim 0.2.0 by kodowa, but I can't see a Vim: map vim keys behaviour when I search in the commands panel (ctrl-space). Is there another way to map Y to yy from within Light Table?

@kenny-evitt
Copy link

@mbylstra You should see the Vim: map vim keys behavior when you open a .behaviors file in LT. Try opening your user.behaviors file and see if you can add the mapping. Also check out the behaviors file for this plugin.

@mbylstra
Copy link

mbylstra commented Dec 3, 2015

great, thanks for you help!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants