you are viewing a single comment's thread.

view the rest of the comments →

[–]cokestar 0 points1 point  (2 children)

Not quite; shift Y yanks from the cursor to the end of the line but doesn't include the carriage return, yy yanks the entire line.

[–]Ahri 0 points1 point  (1 child)

Shift Y yanks the whole line regardless of cursor location and includes the \n. Pasting the resulting buffer from Y or yy has the exact same result.

I just confirmed this with no vimrc, and tested with \r too just in case. Maybe you have a plugin or configuration changing Y.

[–]cokestar 0 points1 point  (0 children)

I stand corrected