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

0 comments


Created by: @xiongyuwu

267 active golfers, 540 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

5
#170 - Baine Wedlock / @BaineWedlock

09/20/2019 at 10:33AM

5
#171 - Iggy / @iggredible

09/24/2019 at 03:06AM

5
#172 - Brandon Harrison / @llAboutB

09/24/2019 at 08:13PM

5
#173 - Lorenzo Bertolino / @lo_bertolino

09/25/2019 at 04:06PM

5
#174 - Abner jr / @Abnerjr19

09/28/2019 at 03:29PM

5
#175 - vimgolfer / @vimgolfer7

09/28/2019 at 04:19PM

5
#176 - Miko / @_m_ik_o_

10/06/2019 at 01:55PM

5
#177 - Viktor Styrud / @Visklol

10/07/2019 at 06:14AM

5
#178 - Charlie OConor / @charlieoconor

10/07/2019 at 05:33PM

5
#179 - Cillian Berragan / @cjberragan

10/11/2019 at 09:26PM

5
#180 - leo / @leo28356948

10/24/2019 at 05:07AM