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):
05/10/2019 at 04:21PM
09/24/2019 at 02:04PM
09/27/2019 at 04:39PM
10/24/2019 at 09:18AM
11/18/2019 at 11:12AM
05/31/2021 at 02:51AM
01/13/2019 at 10:50AM
01/27/2019 at 09:03AM
04/10/2020 at 02:22PM
02/21/2021 at 05:45AM
04/14/2024 at 08:14AM
11/08/2024 at 07:35PM
03/29/2019 at 03:16AM
01/16/2019 at 09:11PM
02/04/2019 at 12:26PM
04/02/2025 at 12:46PM
03/28/2025 at 04:38PM
01/26/2019 at 07:44AM
01/12/2019 at 02:35AM
01/12/2019 at 09:13AM
04/13/2024 at 12:49PM
04/07/2023 at 07:18AM
02/10/2020 at 01:05PM