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;
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
400 remaining solutions by
signing in and submitting your own entry
#401
Mahendrata Harpi / @piharpi -
Score: 95 -
02/10/20 @ 13:05
<Esc>c0<Esc>$d2<BS>uuuulllllllllllllllll$hlldwhhllllllluudwhhuuld4wwxxxxxxxxxxxxxxxxxxxx<Esc><Esc>:w<CR>:w<CR>:w<CR>L:w<CR>:q<CR>
0 comments
401 active golfers, 831 entries
Leaderboard (lowest score wins):
07/13/2019 at 11:24PM
07/16/2019 at 12:34PM
07/16/2019 at 12:36PM
07/20/2019 at 06:41PM
07/27/2019 at 07:48PM
07/28/2019 at 11:42AM
07/28/2019 at 10:34PM
08/01/2019 at 06:00PM
08/03/2019 at 02:03AM
08/08/2019 at 07:12PM
08/15/2019 at 02:34PM
08/18/2019 at 06:13PM
08/22/2019 at 02:03PM
08/23/2019 at 03:02PM
08/24/2019 at 02:46PM
08/26/2019 at 01:50AM
08/26/2019 at 11:34AM
09/17/2019 at 11:44AM
09/19/2019 at 03:28AM
09/20/2019 at 10:33AM
09/24/2019 at 03:06AM
09/24/2019 at 08:13PM
09/25/2019 at 04:06PM
09/28/2019 at 03:29PM
09/28/2019 at 04:19PM
10/06/2019 at 01:55PM
10/07/2019 at 06:14AM
10/07/2019 at 05:33PM
10/11/2019 at 09:26PM
10/24/2019 at 05:07AM