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

1046 active golfers, 4572 entries

Leaderboard (lowest score wins):
28
#991 - supasnashbuhl / @supasnashbuhl

02/08/2015 at 01:10AM

28
#992 - Nicola Girardi / @bruciasse

07/02/2015 at 02:31AM

28
#993 - Mac Heller-Ogden / @twosoul

03/29/2016 at 10:10PM

28
#994 - Aviram Alter / @onallion

08/11/2016 at 09:52AM

28
#995 - Adi Ron / @notadiron

03/10/2017 at 03:55PM

28
#996 - Robert Max Williams / @MaxPhurich

09/11/2017 at 10:40PM

28
#997 - Paul Inc / @hiniol1982

07/27/2018 at 07:37PM

28
#998 - Kevin Cooler / @KevinCooler

08/10/2018 at 04:22PM

29
#999 - asd fsdf / @totallythr

11/08/2014 at 07:20AM

29
#1000 - gerardabello / @gerardabello

11/10/2014 at 04:51PM

29
#1001 - Federico Barrios / @efebarrios

11/29/2014 at 05:31PM

29
#1002 - aaron sullivan / @aaronsull

11/29/2014 at 09:35PM

29
#1003 - Gleb Posobin / @mr_passick

12/08/2014 at 08:32PM

29
#1004 - J Andrew McCormick / @jandrewmc

07/23/2015 at 07:32PM

30
#1005 - air wick / @airwickc

01/23/2015 at 12:00AM

30
#1006 - Алина Михалькова / @smertskosoi1

01/26/2015 at 12:54PM

30
#1007 - Wade / @vvandy

05/06/2015 at 08:37PM

30
#1008 - Chris Grantham / @crgrantham

12/14/2015 at 04:44PM

30
#1009 - Ilya Ezepov / @iezepov

12/03/2016 at 07:13PM

31
#1010 - Heron Medeiros / @heronmedeiros

11/10/2014 at 11:23PM

31
#1011 - Dylan Harrington / @dylanharrington

03/12/2015 at 12:36AM

31
#1012 - dan sweeting / @itsjustcode

11/12/2015 at 08:52PM

31
#1013 - Graham Singer / @grahamsinger

01/05/2019 at 04:55AM

32
#1014 - Spacesh1p / @spacesh1pdev

01/03/2018 at 01:10PM

33
#1015 - Christophe Tappret / @_xtero_

07/23/2015 at 01:46PM

33
#1016 - Abdou Belghalem / @abelghalem

09/07/2015 at 03:23PM

33
#1017 - Hank Chinaski / @uktechman

04/22/2016 at 04:44PM

34
#1018 - Slurpie Chapdash / @SlurpieChapdash

05/01/2015 at 09:37PM

34
#1019 - ʎɐɹ / @staticjak

05/05/2017 at 09:47PM

36
#1020 - bo-yu huang / @good5dog5

11/11/2014 at 08:34AM