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):
10/13/2022 at 10:27PM
03/27/2023 at 10:53AM
12/13/2023 at 11:37PM
01/14/2024 at 03:54PM
04/08/2024 at 03:31AM
04/09/2024 at 01:57PM
04/11/2024 at 08:50AM
04/12/2024 at 04:14AM
04/12/2024 at 05:05AM
04/12/2024 at 05:25PM
04/13/2024 at 11:53AM
04/13/2024 at 12:11PM
04/13/2024 at 12:19PM
04/13/2024 at 04:33PM
04/14/2024 at 11:59AM
04/14/2024 at 01:19PM
11/24/2024 at 07:59PM
03/27/2025 at 07:08AM
04/27/2025 at 01:11AM
11/01/2025 at 09:19AM
01/12/2019 at 02:48AM
01/14/2019 at 06:46AM
01/19/2019 at 10:17PM
01/21/2019 at 05:03PM
03/03/2019 at 07:31PM
04/28/2019 at 12:26AM
01/12/2019 at 01:05AM
01/16/2019 at 01:13AM
01/16/2019 at 04:22PM
01/17/2019 at 10:21PM