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):
10/27/2019 at 09:01PM
10/29/2019 at 01:52PM
10/30/2019 at 01:04PM
11/01/2019 at 07:22PM
11/08/2019 at 07:01AM
11/12/2019 at 05:20PM
11/24/2019 at 04:26AM
12/01/2019 at 08:12AM
12/01/2019 at 06:43PM
12/05/2019 at 05:55AM
12/10/2019 at 02:15AM
12/17/2019 at 09:19PM
12/21/2019 at 08:25PM
12/30/2019 at 07:59PM
01/03/2020 at 12:09PM
01/14/2020 at 02:37PM
01/20/2020 at 08:42PM
01/23/2020 at 12:42PM
01/27/2020 at 08:44AM
02/05/2020 at 11:34AM
02/13/2020 at 09:16PM
02/27/2020 at 07:48AM
03/02/2020 at 12:44AM
03/02/2020 at 10:15PM
03/12/2020 at 09:59AM
03/13/2020 at 03:42PM
03/13/2020 at 05:54PM
03/15/2020 at 12:51PM
03/22/2020 at 10:42PM
03/24/2020 at 05:32PM