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
400 remaining solutions by
signing in and submitting your own entry
#401
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
401 active golfers, 831 entries
Leaderboard (lowest score wins):
01/16/2021 at 05:08PM
05/10/2021 at 12:08PM
05/11/2021 at 06:40AM
07/15/2021 at 04:06PM
09/10/2021 at 05:00PM
07/06/2022 at 11:30PM
09/01/2022 at 11:25AM
10/05/2022 at 05:04PM
11/08/2022 at 09:19PM
04/22/2023 at 07:42AM
06/11/2023 at 09:45AM
06/17/2023 at 11:44AM
09/14/2023 at 05:23PM
09/20/2023 at 03:48PM
11/02/2023 at 01:45AM
02/03/2024 at 03:16PM
04/08/2024 at 02:44AM
04/08/2024 at 01:05PM
04/08/2024 at 02:00PM
04/12/2024 at 06:48AM
04/13/2024 at 01:41PM
04/14/2024 at 06:23AM
04/14/2024 at 01:12PM
04/21/2024 at 10:48PM
05/29/2024 at 05:09PM
07/22/2024 at 12:22AM
08/25/2024 at 02:45AM
08/28/2024 at 12:14PM
02/25/2025 at 01:33AM
03/26/2025 at 03:02AM