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 400 remaining solutions by signing in and submitting your own entry
#401 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

401 active golfers, 831 entries

Leaderboard (lowest score wins):
5
#181 - Jason Chen / @chezbgone

10/27/2019 at 09:01PM

5
#182 - Serghei Cebotari / @scebotari66

10/29/2019 at 01:52PM

5
#183 - Ivan Volosyuk / @IvanVolosyuk

10/30/2019 at 01:04PM

5
#184 - GrimmT / @GrimmT10

11/01/2019 at 07:22PM

5
#185 - Melvin Cheung / @MelvinCheung

11/08/2019 at 07:01AM

5
#186 - Gomez / @poster_eco

11/12/2019 at 05:20PM

5
#187 - pysnow530 / @pysnow530

11/24/2019 at 04:26AM

5
#188 - мои соседи вайнеры / @ionagamed

12/01/2019 at 08:12AM

5
#189 - Robert / @pepzit

12/01/2019 at 06:43PM

5
#190 - Jonathan Jeffrey / @jonrjeffrey

12/05/2019 at 05:55AM

5
#191 - skamgolf / @skamgolf

12/10/2019 at 02:15AM

5
#192 - vicver09 / @vicver091

12/17/2019 at 09:19PM

5
#193 - James Casey / @hanavi

12/21/2019 at 08:25PM

5
#194 - samuel norbury / @SnNorbury

12/30/2019 at 07:59PM

5
#195 - Oleg / @colega

01/03/2020 at 12:09PM

5
#196 - JimmyGymglish / @JGymglish

01/14/2020 at 02:37PM

5
#197 - Jason Neylon / @jasonneylon

01/20/2020 at 08:42PM

5
#198 - Michael Meixner / @meixner62

01/23/2020 at 12:42PM

5
#199 - Thomas Jung / @ThomasAJung

01/27/2020 at 08:44AM

5
#200 - Ilari Mäkelä / @ilarimkel

02/05/2020 at 11:34AM

5
#201 - Romain Heller / @Rom1deTroyes

02/13/2020 at 09:16PM

5
#202 - Jonathan.N.Carrot / @JonathanNCarrot

02/27/2020 at 07:48AM

5
#203 - Reynald Havard / @rey_ha

03/02/2020 at 12:44AM

5
#204 - Bitt Faulk / @bittfaulk

03/02/2020 at 10:15PM

5
#205 - countime / @countime1

03/12/2020 at 09:59AM

5
#206 - r4d1um / @r4d1um

03/13/2020 at 03:42PM

5
#207 - Wouter Horlings / @Achilleshiel

03/13/2020 at 05:54PM

5
#208 - giursino / @giursino1

03/15/2020 at 12:51PM

5
#209 - Niklas Ydebäck / @Ydebaeck

03/22/2020 at 10:42PM

5
#210 - Toby Hawkins / @Toby_Hawkins

03/24/2020 at 05:32PM