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):
03/03/2019 at 03:48PM
03/04/2019 at 08:26AM
03/06/2019 at 12:24PM
03/06/2019 at 09:18PM
03/06/2019 at 10:31PM
03/09/2019 at 01:27PM
03/10/2019 at 11:54PM
03/12/2019 at 11:31AM
03/12/2019 at 12:06PM
03/12/2019 at 04:21PM
03/17/2019 at 07:41PM
03/18/2019 at 08:15PM
03/19/2019 at 06:08PM
03/20/2019 at 12:41PM
03/21/2019 at 01:52PM
03/22/2019 at 03:49AM
03/22/2019 at 08:44AM
03/30/2019 at 08:40PM
04/03/2019 at 03:02AM
04/07/2019 at 10:23PM
04/08/2019 at 02:53AM
04/08/2019 at 10:30AM
04/11/2019 at 05:17AM
04/14/2019 at 07:56PM
04/18/2019 at 10:03PM
04/19/2019 at 06:46AM
04/21/2019 at 01:01PM
04/23/2019 at 08:37PM
04/27/2019 at 01:51PM
05/01/2019 at 11:02PM