Delete to the end of the current line
Delete to the end of the current line, but keep the character under the cursor.
Start file
just to remove all text after; // this is a comment
End file
just to remove all text after;
View Diff
1c1 < just to remove all text after; // this is a comment --- > just to remove all text after;
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 390 remaining solutions by signing in and submitting your own entry
Created by: @xiongyuwu Tweet
391 active golfers, 812 entries
Leaderboard (lowest score wins):
#70 - πππππππ πππ’πππππ / @TitouanT_
02/01/2019 at 03:46AM