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
412 remaining solutions by
signing in and submitting your own entry
#413
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
413 active golfers, 858 entries
Leaderboard (lowest score wins):
01/16/2019 at 06:20PM
01/19/2019 at 01:22PM
01/19/2019 at 07:48PM
01/23/2019 at 11:28AM
#305 - we’re going to need a bigger bot / @assaflavie
01/23/2019 at 03:22PM
01/24/2019 at 01:04AM
01/25/2019 at 09:10PM
01/27/2019 at 01:01PM
01/27/2019 at 08:37PM
01/31/2019 at 09:28AM
01/31/2019 at 04:58PM
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