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):
01/16/2019 at 01:31PM
01/16/2019 at 11:47PM
01/17/2019 at 03:45AM
01/17/2019 at 07:50AM
01/17/2019 at 09:26AM
01/17/2019 at 07:53PM
01/17/2019 at 10:17PM
01/18/2019 at 06:17AM
01/18/2019 at 08:07AM
01/18/2019 at 09:03AM
01/19/2019 at 04:05AM
01/19/2019 at 10:35AM
01/19/2019 at 05:59PM
01/20/2019 at 05:58AM
01/21/2019 at 01:46AM
01/21/2019 at 05:57PM
01/22/2019 at 04:16AM
01/22/2019 at 04:51AM
01/22/2019 at 11:11PM
01/22/2019 at 11:42PM
01/23/2019 at 02:47PM
01/24/2019 at 09:33PM
01/24/2019 at 09:46PM
01/25/2019 at 05:36PM
01/25/2019 at 11:01PM
01/27/2019 at 07:04AM
01/27/2019 at 07:44AM
01/27/2019 at 02:31PM
01/27/2019 at 10:06PM
01/28/2019 at 01:02AM