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

976 active golfers, 4195 entries

Leaderboard (lowest score wins):
18
#511 - Mike Chen / @chagel

10/29/2018 at 11:41PM

18
#512 - Kasparas Lavrukaitis / @kaslvr

11/04/2018 at 08:43AM

18
#513 - Luis Rodriguez / @luisthecoder

11/13/2018 at 12:26AM

19
#514 - Michael Foley / @m1foley

11/04/2014 at 11:44PM

19
#515 - Jeffrey fiddler / @jeff_nv_86

11/05/2014 at 12:23AM

19
#516 - Shane Smith / @_shanesmith

11/05/2014 at 02:34AM

19
#517 - Amit Verma / @amitv12

11/05/2014 at 03:49AM

19
#518 - Matt Robbins / @mcrmfc

11/05/2014 at 12:17PM

19
#519 - Asymmetrical Max / @thismax

11/06/2014 at 06:50AM

19
#520 - Collin Richards / @MrBallinCollin

11/09/2014 at 09:41AM

19
#521 - A / @Tower_1980

11/10/2014 at 10:24AM

19
#522 - Ben Bonfil / @benbonfil

11/16/2014 at 09:20PM

19
#523 - sou s / @_sou3

11/26/2014 at 03:51PM

19
#524 - Eric Lawless / @eplawless

12/10/2014 at 08:31AM

19
#525 - Luca Giovagnoli / @ryuzaki250

12/14/2014 at 09:15AM

19
#526 - 1upまむ9 / @mamunine

12/16/2014 at 02:16PM

19
#527 - Andrew Leung / @aleungpivotal

12/18/2014 at 04:20PM

19
#528 - Boon-Hau Teh / @boondigo

12/24/2014 at 03:50PM

19
#529 - Tamás Torba / @torbatamas

12/30/2014 at 03:32PM

19
#530 - ZC-死理性派 / @zecyzhang

01/10/2015 at 03:56AM

19
#531 - Geoffrey Boom / @theboomtube

01/21/2015 at 01:21AM

19
#532 - )ouni|(antola / @jouni_kantola

01/28/2015 at 11:48PM

19
#533 - Jeremie / @jermoer

02/06/2015 at 03:12AM

19
#534 - Sigurður Ægir Jónsso / @siggiae

03/19/2015 at 12:37PM

19
#535 - Marek Wawrzos / @putisPenser

03/25/2015 at 09:20AM

19
#536 - Alexander Kazakov / @volandkot

03/27/2015 at 12:22PM

19
#537 - Marc-Antoine Sauvé / @masauve_ac

04/26/2015 at 11:38PM

19
#538 - Emil Soman / @emilsoman

05/17/2015 at 04:27PM

19
#539 - Daniel Worthington / @halffullheart

05/20/2015 at 02:38AM

19
#540 - Clark DuVall / @theclarkatron

05/22/2015 at 10:06PM