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 54595b13128576000257a3c1

Basic renumbering

Renumbering Basic.

Start file
10 PRINT "The actual"
15 PRINT "code doesn't"
16 PRINT "really matter."
20 PRINT "Just take"
25 PRINT "care of"
30 PRINT "the numbers."
End file
10 PRINT "The actual"
20 PRINT "code doesn't"
30 PRINT "really matter."
40 PRINT "Just take"
50 PRINT "care of"
60 PRINT "the numbers."

View Diff

2,6c2,6
< 15 PRINT "code doesn't"
< 16 PRINT "really matter."
< 20 PRINT "Just take"
< 25 PRINT "care of"
< 30 PRINT "the numbers."
---
> 20 PRINT "code doesn't"
> 30 PRINT "really matter."
> 40 PRINT "Just take"
> 50 PRINT "care of"
> 60 PRINT "the numbers."

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 1091 remaining solutions by signing in and submitting your own entry
#1092 Dominic Z / @thammaaa - Score: 66 - 12/21/17 @ 12:59
<C-V>GI10<Esc><Esc><C-V>G<C-N><C-A><Esc>ugvgvv<C-A><Esc>uu<C-R><Right><Right><Esc>v<Down><Down><Down><Up><Up><Up><Esc><C-V><Down><Down><Down><Down><Down><Right>d<Left><Left><Down><C-V><Down><Down><Down><Down><C-A><Esc>u<C-V>Gg<C-V><C-A><Esc>u<C-V>Gg<C-A>ZZ

0 comments


Created by: @udioica

1092 active golfers, 4829 entries

Leaderboard (lowest score wins):
21
#721 - Mariano Macchi / @mmacchif

03/02/2015 at 02:57AM

21
#722 - shugen / @shugeno

03/03/2015 at 08:27PM

21
#723 - Gideon VanRiette / @gidjv

03/04/2015 at 05:52PM

21
#724 - ことえり / @kter

03/05/2015 at 02:32PM

21
#725 - Johan Wiren / @johanwiren

03/07/2015 at 06:58PM

21
#726 - Deepak Surti / @dmsurti

03/12/2015 at 03:07PM

21
#727 - BartJanssen / @BartJanssen

03/14/2015 at 11:11PM

21
#728 - Alexander Putilin / @SashaPutilin

03/16/2015 at 10:42PM

21
#729 - Karol Katerżawa / @CharlieQbx

03/17/2015 at 03:00PM

21
#730 - David Martínez Rubio / @damaru_BigSmile

03/21/2015 at 12:53PM

21
#731 - Ben Friedland / @bfriedland174

03/24/2015 at 05:28PM

21
#732 - Travis Barber / @tbarber350

03/25/2015 at 02:19AM

21
#733 - teeheewa / @Heewa

04/02/2015 at 06:07PM

21
#734 - Raj / @brshenoy

04/02/2015 at 07:46PM

21
#735 - Evan Coleman / @edc1591

04/02/2015 at 07:53PM

21
#736 - William Ott / @oddalot

04/07/2015 at 05:51PM

21
#737 - Ducky / @MegaDucky9000

04/15/2015 at 02:06PM

21
#738 - chvzvhn / @chvzvhn

04/26/2015 at 02:24AM

21
#739 - Alex Bartol / @alexbartol

05/06/2015 at 05:25AM

21
#740 - たんたる / @tantal_mech

05/08/2015 at 06:53AM

21
#741 - Tom / @BureaucratGr11

05/27/2015 at 08:45PM

21
#742 - Aurélien Deharbe / @0x_ad

06/02/2015 at 08:36AM

21
#743 - Baleja McIntee / @0mcinteeq

06/09/2015 at 04:20PM

21
#744 - Mac Goever / @MacGoever

06/15/2015 at 11:42AM

21
#745 - Elite Hacker of the Light / @L3E7

07/12/2015 at 09:15PM

21
#746 - vimgolf / @myspare307

07/17/2015 at 08:29PM

21
#747 - Dominique van de Vor / @dvdvorle

07/20/2015 at 08:02AM

21
#748 - Dan Piponi / @sigfpe

07/20/2015 at 10:27PM

21
#749 - Endre Galaczi / @galacziendre

07/26/2015 at 08:16PM

21
#750 - McKay Ward / @mckayward

07/28/2015 at 02:47AM