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

0 comments


Created by: @xiongyuwu

162 active golfers, 329 entries

Leaderboard (lowest score wins):
5
#91 - Mihai Crăiță / @mihai_craita

03/03/2019 at 03:48PM

5
#92 - Oddwel / @Oddwel

03/04/2019 at 08:26AM

5
#93 - MGJoe93 / @mgjoe93

03/06/2019 at 12:24PM

5
#94 - vince / @vincentvangott

03/06/2019 at 09:18PM

5
#95 - Groovy / @groovy9

03/06/2019 at 10:31PM

5
#96 - zenwalker / @zenwalker93

03/09/2019 at 01:27PM

5
#97 - Anthony Catterwell / @ACatterwell

03/10/2019 at 11:54PM

5
#98 - chenqiqi / @chenqiqi13

03/12/2019 at 11:31AM

5
#99 - OldBoy / @geirola

03/12/2019 at 12:06PM

5
#100 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:21PM

5
#101 - Emil Braserud / @Erdustiggen

03/17/2019 at 07:41PM

5
#102 - enji / @enji_jp

03/18/2019 at 08:15PM

5
#103 - Parsa Amini / @ParsaAmini

03/19/2019 at 06:08PM

5
#104 - zh0ng / @zh00ng

03/20/2019 at 12:41PM

5
#105 - Life_is_a_lie / @RealLifeNotReal

03/21/2019 at 01:52PM

5
#106 - k24w24 / @k24w24

03/22/2019 at 03:49AM

5
#107 - Stefan Käser / @stivi_kivi

03/22/2019 at 08:44AM

6
#108 - xiong yuwu / @xiongyuwu

01/12/2019 at 12:53AM

6
#109 - PJ Frazer / @pj_frazer

01/12/2019 at 01:07AM

6
#110 - James / @Dronak

01/12/2019 at 01:23AM

6
#111 - Derek Schrock / @derekschrock

01/12/2019 at 02:08AM

6
#112 - Dax / @zacoxi

01/12/2019 at 02:49AM

6
#113 - abgalphabet / @abgalphabet

01/12/2019 at 02:53AM

6
#114 - Luan Truong / @hubbatch0

01/12/2019 at 04:59PM

6
#115 - hbdgr / @t_hbdgr

01/12/2019 at 07:54PM

6
#116 - Blah Blah / @BlahBla08410389

01/12/2019 at 08:13PM

6
#117 - rg thomas / @rgt47

01/12/2019 at 11:56PM

6
#118 - Benjamin Davies / @Benjami77142111

01/13/2019 at 09:06AM

6
#119 - Joe Francis / @lostapathy

01/13/2019 at 05:05PM

6
#120 - Martins / @Martins88554972

01/13/2019 at 07:26PM