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
390 remaining solutions by
signing in and submitting your own entry
#391
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
391 active golfers, 812 entries
Leaderboard (lowest score wins):
03/25/2020 at 06:18AM
03/27/2020 at 09:39PM
04/03/2020 at 07:07PM
04/17/2020 at 06:49AM
04/17/2020 at 12:06PM
04/23/2020 at 02:09PM
05/04/2020 at 07:41PM
05/05/2020 at 08:05AM
05/07/2020 at 08:13AM
05/08/2020 at 06:51AM
05/08/2020 at 01:57PM
05/10/2020 at 02:11AM
05/10/2020 at 07:02AM
05/13/2020 at 05:59AM
05/21/2020 at 07:49PM
05/27/2020 at 02:30AM
05/28/2020 at 02:34AM
05/29/2020 at 04:47AM
05/29/2020 at 08:02PM
06/03/2020 at 01:49AM
06/17/2020 at 12:09PM
06/20/2020 at 03:00AM
07/15/2020 at 05:27PM
07/26/2020 at 06:55AM
07/31/2020 at 10:13AM
08/16/2020 at 06:44PM
09/26/2020 at 12:17AM
12/13/2020 at 08:09PM
01/09/2021 at 12:17PM
01/15/2021 at 11:15AM