Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 5c393a580a5a300009888e2a

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;

View Diff

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 218 remaining solutions by signing in and submitting your own entry
#219 蒋金鑫 / @jiangjinxin1 - Score: 20 - 01/12/19 @ 09:13
f;Duu<Esc><Esc>bbbbbbbf;lDZZ

0 comments


Created by: @xiongyuwu

219 active golfers, 446 entries

Leaderboard (lowest score wins):
5
#121 - ow / @ow34480012

05/02/2019 at 08:06AM

5
#122 - Ítalo Vieira / @italoviieira

05/04/2019 at 03:32AM

5
#123 - (っ=﹏=c) .。o○ / @itchyny

05/04/2019 at 12:56PM

5
#124 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 04:45PM

5
#125 - Jairo Suarez / @xyos

05/08/2019 at 04:51PM

5
#126 - Arno / @arnoxmp

05/08/2019 at 09:03PM

5
#127 - Daniel Hakimian / @danrafhak

05/15/2019 at 06:18PM

5
#128 - ささ / @nick11033

05/16/2019 at 11:48AM

5
#129 - heppen / @heppen_He

05/17/2019 at 08:42AM

5
#130 - Draco Blackstone / @Sir_Draco309

05/24/2019 at 07:17PM

5
#131 - Дима / @dimkino

05/29/2019 at 10:44PM

5
#132 - JonasS / @jonas42s

05/30/2019 at 09:57AM

5
#133 - Fiffy / @sr21486642

05/31/2019 at 08:41AM

5
#134 - Seunghun Lee / @earlbread

06/02/2019 at 12:27PM

5
#135 - deHman89 / @danho89

06/05/2019 at 08:44AM

5
#136 - mkaminaga / @mkmng3

06/06/2019 at 01:02PM

5
#137 - Fernando Motta / @Fmmotta01

06/06/2019 at 08:11PM

5
#138 - Sondre Lunde / @SondreSL

06/07/2019 at 01:46PM

5
#139 - Gauthier B / @gogoprog

06/11/2019 at 11:01AM

5
#140 - Foo Bar / @foobar01123

06/12/2019 at 06:14AM

5
#141 - duyanh.y4n.pham / @PhamY4n

06/12/2019 at 11:23AM

5
#142 - MartinRAndersen / @MyrionSC2

06/12/2019 at 01:55PM

5
#143 - majo senf / @majo_senf

06/14/2019 at 02:51PM

5
#144 - Grzegorz Andrzejowski / @AndrzejowskiG

06/18/2019 at 09:56AM

5
#145 - せいほう / @FICSQF

07/03/2019 at 11:11AM

5
#146 - Marcus Loo / @MarcusLoo1

07/03/2019 at 03:27PM

5
#147 - gvn lazar suntop / @gvn

07/03/2019 at 06:51PM

5
#148 - Trevor Langston / @sunkenroad

07/03/2019 at 11:38PM

5
#149 - vimgolfacct / @vimgolfacct

07/08/2019 at 01:28AM

5
#150 - Sean Sullivan / @_seanyneutron

07/12/2019 at 04:29AM