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):
05/02/2019 at 08:06AM
05/04/2019 at 03:32AM
05/04/2019 at 12:56PM
05/05/2019 at 04:45PM
05/08/2019 at 04:51PM
05/08/2019 at 09:03PM
05/15/2019 at 06:18PM
05/16/2019 at 11:48AM
05/17/2019 at 08:42AM
05/24/2019 at 07:17PM
05/29/2019 at 10:44PM
05/30/2019 at 09:57AM
05/31/2019 at 08:41AM
06/02/2019 at 12:27PM
06/05/2019 at 08:44AM
06/06/2019 at 01:02PM
06/06/2019 at 08:11PM
06/07/2019 at 01:46PM
06/11/2019 at 11:01AM
06/12/2019 at 06:14AM
06/12/2019 at 11:23AM
06/12/2019 at 01:55PM
06/14/2019 at 02:51PM
06/18/2019 at 09:56AM
07/03/2019 at 11:11AM
07/03/2019 at 03:27PM
#147 - gvn lazar suntop / @gvn
07/03/2019 at 06:51PM
07/03/2019 at 11:38PM
07/08/2019 at 01:28AM
07/12/2019 at 04:29AM