I often do Nyy to print the current line and N-1 lines below. So 3yy will delay the current line and two more lines (so all together 3).
I know how to pull N lines above the current line ( yNk ), but this does not include the current line. I want to output the current line and lines N-1 above. How to do this (ideally also with the yy command)?
Edit: Apparently yNk includes the current line. I must have missed this. thanks for the comments.
source share