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
399 remaining solutions by
signing in and submitting your own entry
#400
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
400 active golfers, 829 entries
Leaderboard (lowest score wins):
01/12/2019 at 06:55AM
01/12/2019 at 07:10AM
01/12/2019 at 10:41AM
01/12/2019 at 11:45AM
01/12/2019 at 07:08PM
01/12/2019 at 08:39PM
01/12/2019 at 08:39PM
01/12/2019 at 10:31PM
01/12/2019 at 11:06PM
01/12/2019 at 11:06PM
01/13/2019 at 04:08AM
01/13/2019 at 04:22AM
01/13/2019 at 09:29AM
01/13/2019 at 11:19AM
01/13/2019 at 03:20PM
01/14/2019 at 01:21AM
01/14/2019 at 02:55AM
01/14/2019 at 03:00AM
01/14/2019 at 03:42AM
01/14/2019 at 07:39AM
01/14/2019 at 08:07AM
01/14/2019 at 11:56AM
01/14/2019 at 01:19PM
01/14/2019 at 11:32PM
01/15/2019 at 12:23AM
01/15/2019 at 01:06PM
01/15/2019 at 01:10PM
01/15/2019 at 02:02PM
01/15/2019 at 07:59PM
01/16/2019 at 11:25AM