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

0 comments


Created by: @xiongyuwu

276 active golfers, 565 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_ja

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

5
#108 - Paul Inc / @hiniol1982

03/30/2019 at 08:40PM

5
#109 - wanghbxxxx / @wanghbxxxx

04/03/2019 at 03:02AM

5
#110 - Mark Stillwell / @marklee77

04/07/2019 at 10:23PM

5
#111 - james_bunch / @james_bunch

04/08/2019 at 02:53AM

5
#112 - Joel Eriksson / @OwariDa

04/08/2019 at 10:30AM

5
#113 - Noah Epstein / @NoahJEpstein

04/11/2019 at 05:17AM

5
#114 - alekfed / @alek_fed

04/14/2019 at 07:56PM

5
#115 - Norbert / @mullno

04/18/2019 at 10:03PM

5
#116 - Branden Clark / @clarkb_cs

04/19/2019 at 06:46AM

5
#117 - Gitsnik / @dracyrys

04/21/2019 at 01:01PM

5
#118 - Iver Håkonsen / @HakonsenIver

04/23/2019 at 08:37PM

5
#119 - Grant / @grant_7788

04/27/2019 at 01:51PM

5
#120 - Sherab Giovannini / @shaddycls

05/01/2019 at 11:02PM