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

0 comments


Created by: @xiongyuwu

242 active golfers, 487 entries

Leaderboard (lowest score wins):
5
#151 - Crystal L / @Cartsly

07/13/2019 at 11:24PM

5
#152 - 浚宇 / @Junyu_Wang_cn

07/16/2019 at 12:34PM

5
#153 - Neil Struthers / @struthersneil

07/16/2019 at 12:36PM

5
#154 - Nick Ciardiello / @NCiardiello

07/20/2019 at 06:41PM

5
#155 - Matthew Rossman / @chimpman252

07/27/2019 at 07:48PM

5
#156 - Vim Golfer / @VimGolfer6

07/28/2019 at 11:42AM

5
#157 - Enoch / @_enocht

07/28/2019 at 10:34PM

5
#158 - Joe Fahnestock🌵 / @Joecupojoe

08/01/2019 at 06:00PM

5
#159 - Ron Holt / @ron_holt

08/03/2019 at 02:03AM

5
#160 - sooqua / @sooqua

08/08/2019 at 07:12PM

5
#161 - Chris Shorrock / @EbinFlow

08/15/2019 at 02:34PM

5
#162 - theBecwar / @thebecwar

08/18/2019 at 06:13PM

5
#163 - BESSENG A IREH Guy / @guybesseng

08/22/2019 at 02:03PM

5
#164 - Martin Delille / @martinodelilo

08/23/2019 at 03:02PM

5
#165 - Simon Wilkinson / @simondwilkinson

08/24/2019 at 02:46PM

5
#166 - Adam Hartz / @awareofnow

08/26/2019 at 01:50AM

5
#167 - GAUTAM V NAIK / @gautamnaik1994

08/26/2019 at 11:34AM

5
#168 - therealgeysenberg / @therealgeysenb1

09/17/2019 at 11:44AM

5
#169 - BHydden / @HyddenRiver

09/19/2019 at 03:28AM

6
#170 - xiong yuwu / @xiongyuwu

01/12/2019 at 12:53AM

6
#171 - PJ Frazer / @pj_frazer

01/12/2019 at 01:07AM

6
#172 - James / @Dronak

01/12/2019 at 01:23AM

6
#173 - Derek Schrock / @derekschrock

01/12/2019 at 02:08AM

6
#174 - Dax / @zacoxi

01/12/2019 at 02:49AM

6
#175 - abgalphabet / @abgalphabet

01/12/2019 at 02:53AM

6
#176 - Luan Truong / @hubbatch0

01/12/2019 at 04:59PM

6
#177 - hbdgr / @t_hbdgr

01/12/2019 at 07:54PM

6
#178 - Blah Blah / @BlahBla08410389

01/12/2019 at 08:13PM

6
#179 - rg thomas / @rgt47

01/12/2019 at 11:56PM

6
#180 - Benjamin Davies / @Benjami77142111

01/13/2019 at 09:06AM