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

1199 active golfers, 5322 entries

Leaderboard (lowest score wins):
16
#511 - Ben Hill / @KaizenSoze70

05/14/2016 at 08:35PM

16
#512 - Tom / @CronutFacts

05/15/2016 at 11:17PM

16
#513 - hen don / @hendon112

02/26/2017 at 12:38PM

16
#514 - Travis Bybee / @bybeet

05/05/2017 at 09:52PM

16
#515 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

05/26/2017 at 07:02AM

16
#516 - James Maguire / @3rdMaguire

06/12/2017 at 10:24AM

16
#517 - Chris Atanasian / @ChrisAtanasian

10/12/2017 at 09:18PM

16
#518 - Prithviraj Patil / @dummyprithviraj

12/03/2017 at 03:39PM

16
#519 - mass / @mass256

07/06/2018 at 07:56AM

16
#520 - Bart3k / @Bart3k3

09/11/2018 at 11:36AM

16
#521 - Bruce Adams / @bruceadams1054

10/08/2018 at 11:47AM

16
#522 - aka / @aaik4

12/23/2018 at 03:45AM

16
#523 - Ronnie Kon / @KonRonnie

01/28/2019 at 07:50PM

16
#524 - Adrien Plaçais / @AdrienPlcs

01/31/2019 at 04:13PM

16
#525 - Amado Antonini / @AmadoAntonini

03/16/2019 at 09:45AM

16
#526 - wanghbxxxx / @wanghbxxxx

04/04/2019 at 02:08AM

16
#527 - cinder 🔥 / @cyndrdev

06/27/2019 at 05:22PM

16
#528 - Harrison / @ardentcow

10/31/2019 at 04:15AM

16
#529 - Nicolas Pagny / @NicolasPagny

12/18/2019 at 01:53PM

16
#530 - Xiangzhuo Meng / @MengXiangzhuo

01/31/2020 at 05:01PM

16
#531 - cyndiii-development / @cyndiiidevelop1

04/19/2020 at 07:47AM

16
#532 - Jan Fiser / @dmmn082

05/12/2020 at 07:21PM

16
#533 - Леонид / @miiasond

05/25/2020 at 03:22PM

17
#534 - Éric Calvayrac / @xarmux2

11/05/2014 at 11:17PM

17
#535 - Marcin Szamotulski / @me_coot

11/07/2014 at 11:45PM

17
#536 - Eric Alexander / @ericalexander

11/08/2014 at 01:54AM

17
#537 - Carlos López / @morrizon

11/20/2014 at 09:28AM

17
#538 - George Angelopoulos / @g_usermod

08/06/2016 at 12:03PM

17
#539 - Mark Dawson / @drmarkdawson

10/25/2016 at 06:50AM

17
#540 - Mattias GABRIEL / @matou008

12/20/2016 at 10:13PM