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

1074 active golfers, 4689 entries

Leaderboard (lowest score wins):
19
#601 - Marc-Antoine Sauvé / @masauve_ac

04/26/2015 at 11:38PM

19
#602 - Emil Soman / @emilsoman

05/17/2015 at 04:27PM

19
#603 - Daniel Worthington / @halffullheart

05/20/2015 at 02:38AM

19
#604 - Clark DuVall / @theclarkatron

05/22/2015 at 10:06PM

19
#605 - mat / @matgeist

05/22/2015 at 10:07PM

19
#606 - tehdog / @tehdog22

06/06/2015 at 04:49PM

19
#607 - Florian Schöffl / @FlorianSchffl

08/07/2015 at 04:14PM

19
#608 - Blake Tereau / @BlakeTereau

08/11/2015 at 05:08PM

19
#609 - alex / @alexAngle8

08/21/2015 at 10:22PM

19
#610 - No way / @korgmademedothi

08/24/2015 at 11:32PM

19
#611 - Andrew Michaud / @andrewjmichaud

09/15/2015 at 10:32PM

19
#612 - ささ / @sk_sn

11/11/2015 at 08:49AM

19
#613 - Paul D. Kang / @pauldakang

12/11/2015 at 01:52AM

19
#614 - Jasbir Singh / @jasbirsingh11

01/16/2016 at 08:01PM

19
#615 - Charles Laber-Smith / @clabersmith

03/15/2016 at 06:06PM

19
#616 - Christopher Wells / @ExcaliburZero_Z

05/07/2016 at 08:09PM

19
#617 - malet / @Malet

06/23/2016 at 02:28PM

19
#618 - Nikita Danilov / @Mirt_ru

07/17/2016 at 09:17AM

19
#619 - Antoni Villalonga / @friki

08/18/2016 at 02:39AM

19
#620 - Lozovaya Elizaveta / @Lozoveta

10/26/2016 at 08:34AM

19
#621 - Wessel Sinnema / @wsinnema

11/26/2016 at 08:49PM

19
#622 - Matt Walsh / @wattmalsh

02/03/2017 at 06:34PM

19
#623 - Dan Prince / @danj_prince

02/25/2017 at 01:34AM

19
#624 - xwle / @xwle

03/12/2017 at 04:21AM

19
#625 - Simon Cheng / @bambooraccoon

01/19/2018 at 07:41PM

19
#626 - Adam Townsend / @despendesigns

01/29/2018 at 09:30AM

19
#627 - h3is3nd3rp / @h3is3nd3rp

08/02/2018 at 12:37PM

19
#628 - 唐偉 / @tangw

11/18/2018 at 04:15PM

19
#629 - Levi Self / @LeviRSelf

11/18/2018 at 10:08PM

19
#630 - nimbus117 / @nimbus_117

11/24/2018 at 05:12PM