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 390 remaining solutions by signing in and submitting your own entry
#391 Mahendrata Harpi / @piharpi - Score: 95 - 02/10/20 @ 13:05
<Esc>c0<Esc>$d2<BS>uuuulllllllllllllllll$hlldwhhllllllluudwhhuuld4wwxxxxxxxxxxxxxxxxxxxx<Esc><Esc>:w<CR>:w<CR>:w<CR>L:w<CR>:q<CR>

0 comments


Created by: @xiongyuwu

391 active golfers, 812 entries

Leaderboard (lowest score wins):
5
#61 - Nick Amin / @thenamin

01/28/2019 at 04:00AM

5
#62 - Dan / @dstein64

01/28/2019 at 06:02AM

5
#63 - Benoit Benoit / @Benoit_Tgt

01/30/2019 at 01:56PM

5
#64 - Patrick Lavin / @LavinComputes

01/30/2019 at 04:50PM

5
#65 - Dominic Z / @thammaaa

01/31/2019 at 12:31AM

5
#66 - Huy HΓΉng / @hungdh0x5e

01/31/2019 at 02:29AM

5
#67 - Anant Mishra / @anantanni22

01/31/2019 at 11:57AM

5
#68 - Rajit Singh / @rajitbsingh

01/31/2019 at 04:55PM

5
#69 - Urso / @UrsoAcademy

01/31/2019 at 08:11PM

5
#70 - πšƒπš’πšπš˜πšžπšŠπš— πšƒπšŽπš’πšœπšœπš’πšŽπš› / @TitouanT_

02/01/2019 at 03:46AM

5
#71 - Rasmus BergstrΓΆm / @JRasmusBm

02/02/2019 at 10:27AM

5
#72 - Sebastien Nicoud / @sebnukem

02/03/2019 at 12:49AM

5
#73 - Kerson Hsiao / @KersonHsiao

02/03/2019 at 10:47AM

5
#74 - amal / @cdsudama

02/03/2019 at 06:31PM

5
#75 - Harsha B C / @Harsha1306_

02/06/2019 at 10:49PM

5
#76 - Zach Russell / @ZacharyRRussell

02/07/2019 at 04:28AM

5
#77 - merphant / @merphant

02/08/2019 at 09:51AM

5
#78 - Bilgisayar yazilimcisi Huseyin / @revanthedarth

02/09/2019 at 03:17AM

5
#79 - Bumazhka / @Bumazhka

02/11/2019 at 08:19AM

5
#80 - Christopher Weyand / @swordman378

02/11/2019 at 02:09PM

5
#81 - Tim White / @antichrist65535

02/12/2019 at 02:03AM

5
#82 - Mateen Ulhaq / @sicariusnoctis

02/12/2019 at 05:49AM

5
#83 - Dan Brinks / @danbrinks

02/14/2019 at 06:32PM

5
#84 - Kristof Jozsa / @kjozsa

02/15/2019 at 07:25PM

5
#85 - Filipe Brandenburger / @filbranden

02/17/2019 at 09:21AM

5
#86 - Turkey Man / @lvturkeyman

02/20/2019 at 05:58AM

5
#87 - Zach Miller / @barizachsy

02/27/2019 at 03:16AM

5
#88 - Ι™arth simulator / @eidoloncity

02/28/2019 at 03:52PM

5
#89 - ahm4711 / @ahm4711

03/01/2019 at 02:47PM

5
#90 - andrwyoung / @andrwyoung1

03/03/2019 at 01:37AM