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

0 comments


Created by: @xiongyuwu

53 active golfers, 96 entries

Leaderboard (lowest score wins):
5
#1 - Smylers / @Smylers2

01/12/2019 at 06:55AM

5
#2 - Valacar / @valacar

01/12/2019 at 07:10AM

5
#3 - Andrey / @andreyrmg

01/12/2019 at 10:41AM

5
#4 - herbage / @herbage2

01/12/2019 at 11:45AM

5
#5 - Jon Krause / @jkrause314

01/12/2019 at 07:08PM

5
#6 - Мастер Гервант / @Dr_Dmatrix

01/12/2019 at 08:39PM

5
#7 - Lajos Koszti / @Ajnasz

01/12/2019 at 08:39PM

5
#8 - Krishnan Ravikumar / @rkrishnaan

01/12/2019 at 10:31PM

5
#9 - Jocelyn Lim / @j0c3lym

01/12/2019 at 11:06PM

5
#10 - Jonathan Gin / @jonathangin52

01/12/2019 at 11:06PM

5
#11 - April Arcus / @aprilarcus

01/13/2019 at 04:08AM

5
#12 - segfaultノススメ / @umaiumi

01/13/2019 at 04:22AM

5
#13 - adir ohayon / @AdirKip

01/13/2019 at 09:29AM

5
#14 - Jacob Degeling / @JacobDegeling

01/13/2019 at 11:19AM

5
#15 - Oleg Marakhovsky / @OMarakhovsky

01/13/2019 at 03:20PM

5
#16 - TimMcGuire / @mcguire

01/14/2019 at 01:21AM

5
#17 - tPenguinLTG / @tpenguinltg

01/14/2019 at 02:55AM

5
#18 - Yes,THAT John McAvoy / @aboy_John

01/14/2019 at 03:00AM

5
#19 - Random / @modandr

01/14/2019 at 03:42AM

5
#20 - Saki Gw / @Sakigw

01/14/2019 at 07:39AM

5
#21 - Mangeart Yoric / @yoricm

01/14/2019 at 08:07AM

5
#22 - pankaj singh / @pankajsingh013

01/14/2019 at 11:56AM

5
#23 - John Braxler / @braxler

01/14/2019 at 01:19PM

5
#24 - Kevin Ullmann / @kevosauce

01/14/2019 at 11:32PM

5
#25 - Thomas Surlykke / @THSurlykke

01/15/2019 at 12:23AM

5
#26 - king of cool / @fyces

01/15/2019 at 01:06PM

5
#27 - Pagliacci / @pedroget92

01/15/2019 at 01:10PM

5
#28 - Juan / @jubujjamer

01/15/2019 at 02:02PM

5
#29 - Vildu / @Vildu3

01/15/2019 at 07:59PM

6
#30 - xiong yuwu / @xiongyuwu

01/12/2019 at 12:53AM