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):
24
#901 - Teemu Okkonen / @TeemuOkkonen

07/06/2015 at 09:31PM

24
#902 - Zsolt Fekete / @feketezsolt

07/10/2015 at 07:14AM

24
#903 - Bucker Fuskyote / @MooglePower

07/12/2015 at 04:03AM

24
#904 - Andreas Schlegel / @andischl

07/26/2015 at 05:06PM

24
#905 - Itamar Gal / @novicevimgolfer

08/17/2015 at 08:27PM

24
#906 - Maxime Dréau / @mdreau

09/07/2015 at 03:18PM

24
#907 - Mike Adams / @davis_cromwell

09/27/2015 at 01:01AM

24
#908 - Sid Momin / @mominsid

10/08/2015 at 09:48PM

24
#909 - Gerald Tilma / @GeraldTilma

10/18/2015 at 03:58PM

24
#910 - manfred knapp / @fred_pooshka

12/11/2015 at 09:39PM

24
#911 - Etienne Tremel / @etiennetremel

02/06/2016 at 02:41PM

24
#912 - Clémence / @Clemence_Neoxia

04/06/2016 at 07:55AM

24
#913 - Joe Searle / @artouk

05/02/2016 at 02:49PM

24
#914 - iNaKoll / @iNaKoll

05/07/2016 at 05:53PM

24
#915 - Jonathan Werner / @jonathanewerner

07/09/2016 at 05:51PM

24
#916 - Marvin Samson / @fresapore

09/09/2016 at 08:13PM

24
#917 - Yann / @yannstad

02/19/2017 at 10:09AM

24
#918 - Eric Bakan / @ericbakan

03/15/2017 at 01:42AM

24
#919 - Mitchell / @Spitchell

03/17/2017 at 12:01AM

24
#920 - melgaardbjorn / @melgaardbjorn

03/18/2017 at 05:43PM

24
#921 - Bruce Horner / @HerbConjurer

05/16/2017 at 01:55AM

24
#922 - Petar Saulic / @gorillawarfare9

10/27/2017 at 09:15AM

24
#923 - Михаил Сурин / @realssmike

12/17/2017 at 03:04AM

24
#924 - l / @ioio85

02/04/2018 at 03:37AM

24
#925 - nomsayin / @nomsayin

04/16/2018 at 12:34AM

24
#926 - Kyle Safran / @kylesafran

01/19/2019 at 03:23AM

25
#927 - Xavier Goás A. / @xa4us

11/07/2014 at 08:45PM

25
#928 - Jake Worth / @jwworth

11/07/2014 at 10:41PM

25
#929 - Juampy NR / @juampynr

12/22/2014 at 11:29AM

25
#930 - Matt Walsh / @mattwalsh

01/18/2015 at 05:29AM