Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
countersixte
on Feb 2, 2012
|
parent
|
context
|
favorite
| on:
Why, oh why, do those nutheads use vi?
For #1, the yy command will yank the entire line (including the newline). Try using y$, which will yank from the cursor to the end of the line (not including the newline).
falcolas
on Feb 2, 2012
[–]
This is the simplest way, in my opinion. So simple, that I remapped 'Y' to do exactly that (so it matches the functionality of 'D' and 'C').
map Y y$
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: