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

1030 active golfers, 4508 entries

Leaderboard (lowest score wins):
21
#691 - chvzvhn / @chvzvhn

04/26/2015 at 02:24AM

21
#692 - Alex Bartol / @alexbartol

05/06/2015 at 05:25AM

21
#693 - たんたる / @tantal_mech

05/08/2015 at 06:53AM

21
#694 - Tom / @BureaucratGr11

05/27/2015 at 08:45PM

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

06/02/2015 at 08:36AM

21
#696 - Baleja McIntee / @0mcinteeq

06/09/2015 at 04:20PM

21
#697 - Mac Goever / @MacGoever

06/15/2015 at 11:42AM

21
#698 - Hans Löfving / @L3E7

07/12/2015 at 09:15PM

21
#699 - vimgolf / @myspare307

07/17/2015 at 08:29PM

21
#700 - Dominique van de Vor / @dvdvorle

07/20/2015 at 08:02AM

21
#701 - Dan Piponi / @sigfpe

07/20/2015 at 10:27PM

21
#702 - Endre Galaczi / @galacziendre

07/26/2015 at 08:16PM

21
#703 - McKay Ward / @mckayward

07/28/2015 at 02:47AM

21
#704 - Daniel Beck / @daniel_beck_il

08/01/2015 at 02:57PM

21
#705 - Dawid retkiewicz / @dawret

08/21/2015 at 10:55AM

21
#706 - Christophe Sicard / @tophsic

08/23/2015 at 05:37AM

21
#707 - Sergey Semushin / @Predelnik

08/23/2015 at 10:08AM

21
#708 - Yaroslav Kanarev / @yarosurabu

09/07/2015 at 03:39PM

21
#709 - Niko / @nikozc

09/22/2015 at 05:25AM

21
#710 - MikeT / @mik3t

09/29/2015 at 09:21PM

21
#711 - a / @robbietron

10/12/2015 at 03:12AM

21
#712 - Anshu Avinash / @anshu_avinash

10/17/2015 at 09:14PM

21
#713 - Bogumił Kamiński / @BogumilKaminski

10/25/2015 at 04:51PM

21
#714 - Ryuichiro / @ryuichiro44

11/19/2015 at 10:53PM

21
#715 - Martin Lehmann / @Theneva

12/10/2015 at 01:33PM

21
#716 - Matías Lang / @sh4r3m4n

12/11/2015 at 02:55PM

21
#717 - abbystasja / @abbystasja

12/21/2015 at 10:58PM

21
#718 - twenty2twoss / @twenty2twoss

01/06/2016 at 09:28PM

21
#719 - thlix / @thlix

01/09/2016 at 05:46PM

21
#720 - Roberto Carraretto / @robcarraretto

01/09/2016 at 10:43PM