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):
02/13/2019 at 10:06PM
02/15/2019 at 03:27AM
02/25/2019 at 04:40PM
02/26/2019 at 04:38PM
03/07/2019 at 09:21PM
03/12/2019 at 03:31PM
03/13/2019 at 03:32PM
03/14/2019 at 05:36AM
03/14/2019 at 12:34PM
03/15/2019 at 12:44AM
03/17/2019 at 05:20PM
03/23/2019 at 05:31PM
03/29/2019 at 03:11AM
04/04/2019 at 12:47PM
04/14/2019 at 08:00PM
05/12/2019 at 09:35AM
05/22/2019 at 11:19AM
06/05/2019 at 08:14AM
07/08/2019 at 02:02PM
07/16/2019 at 02:49AM
07/23/2019 at 07:40PM
08/02/2019 at 07:23PM
08/03/2019 at 06:30PM
08/11/2019 at 08:50PM
08/15/2019 at 08:15PM
08/27/2019 at 04:17AM
09/16/2019 at 08:19PM
09/19/2019 at 10:49AM
10/01/2019 at 02:41PM
10/07/2019 at 06:42PM