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
406 remaining solutions by
signing in and submitting your own entry
#407
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
407 active golfers, 849 entries
Leaderboard (lowest score wins):
03/27/2025 at 01:06AM
03/30/2025 at 05:12AM
04/01/2025 at 01:20PM
04/02/2025 at 09:34AM
05/01/2025 at 06:37PM
05/08/2025 at 06:34PM
05/08/2025 at 07:08PM
05/13/2025 at 10:13PM
05/27/2025 at 04:58PM
06/21/2025 at 02:21PM
01/12/2019 at 12:53AM
01/12/2019 at 01:07AM
01/12/2019 at 02:08AM
01/12/2019 at 02:49AM
01/12/2019 at 02:53AM
01/12/2019 at 04:59PM
01/12/2019 at 07:54PM
01/12/2019 at 08:13PM
01/12/2019 at 11:56PM
01/13/2019 at 09:06AM
01/13/2019 at 05:05PM
01/13/2019 at 07:26PM
01/14/2019 at 07:25AM
01/14/2019 at 12:04PM
01/14/2019 at 02:51PM
01/16/2019 at 06:20PM
01/19/2019 at 01:22PM
01/19/2019 at 07:48PM
01/23/2019 at 11:28AM
#300 - we’re going to need a bigger bot / @assaflavie
01/23/2019 at 03:22PM