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):
10/25/2019 at 12:00AM
11/06/2019 at 03:14AM
11/22/2019 at 02:26PM
12/05/2019 at 07:47PM
12/06/2019 at 11:35PM
12/23/2019 at 10:40PM
12/28/2019 at 11:50AM
03/18/2020 at 09:35AM
03/24/2020 at 10:57PM
04/11/2020 at 01:59PM
05/03/2020 at 08:47AM
05/12/2020 at 02:58PM
05/14/2020 at 04:28PM
05/25/2020 at 06:59AM
05/27/2020 at 04:12AM
07/29/2020 at 07:44AM
09/30/2020 at 07:32PM
#348 - kafang plays vimgolf / @KafangV
12/17/2020 at 10:25AM
06/12/2021 at 06:43AM
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