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

0 comments


Created by: @xiongyuwu

285 active golfers, 580 entries

Leaderboard (lowest score wins):
5
#181 - Jason Chen / @chezbgone

10/27/2019 at 09:01PM

5
#182 - Serghei Cebotari / @scebotari66

10/29/2019 at 01:52PM

5
#183 - Ivan Volosyuk / @IvanVolosyuk

10/30/2019 at 01:04PM

5
#184 - GrimmT / @GrimmT10

11/01/2019 at 07:22PM

5
#185 - Melvin Cheung / @MelvinCheung

11/08/2019 at 07:01AM

5
#186 - Gomez / @poster_eco

11/12/2019 at 05:20PM

5
#187 - pysnow530 / @pysnow530

11/24/2019 at 04:26AM

5
#188 - мои соседи вайнеры / @ionagamed

12/01/2019 at 08:12AM

5
#189 - Robert / @pepzit

12/01/2019 at 06:43PM

5
#190 - Jonathan Jeffrey / @projjects

12/05/2019 at 05:55AM

5
#191 - skamgolf / @skamgolf

12/10/2019 at 02:15AM

5
#192 - vicver09 / @vicver091

12/17/2019 at 09:19PM

5
#193 - James Casey / @hanavi

12/21/2019 at 08:25PM

5
#194 - samuel norbury / @SnNorbury

12/30/2019 at 07:59PM

5
#195 - Oleg / @colega

01/03/2020 at 12:09PM

5
#196 - JimmyGymglish / @JGymglish

01/14/2020 at 02:37PM

5
#197 - Jason Neylon / @jasonneylon

01/20/2020 at 08:42PM

5
#198 - Michael Meixner / @meixner62

01/23/2020 at 12:42PM

6
#199 - xiong yuwu / @xiongyuwu

01/12/2019 at 12:53AM

6
#200 - PJ Frazer / @pj_frazer

01/12/2019 at 01:07AM

6
#201 - James / @Dronak

01/12/2019 at 01:23AM

6
#202 - Derek Schrock / @derekschrock

01/12/2019 at 02:08AM

6
#203 - Dax / @zacoxi

01/12/2019 at 02:49AM

6
#204 - abgalphabet / @abgalphabet

01/12/2019 at 02:53AM

6
#205 - Luan Truong / @hubbatch0

01/12/2019 at 04:59PM

6
#206 - hbdgr / @t_hbdgr

01/12/2019 at 07:54PM

6
#207 - Blah Blah / @BlahBla08410389

01/12/2019 at 08:13PM

6
#208 - rg thomas / @rgt47

01/12/2019 at 11:56PM

6
#209 - Benjamin Davies / @Benjami77142111

01/13/2019 at 09:06AM

6
#210 - Joe Francis / @lostapathy

01/13/2019 at 05:05PM