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

1092 active golfers, 4829 entries

Leaderboard (lowest score wins):
18
#511 - Erim Secla / @Alcesmire

12/15/2014 at 04:33AM

18
#512 - Stefan Eng / @Wribbe

12/15/2014 at 04:36PM

18
#513 - Araka Bar / @ArakaBar

12/23/2014 at 06:22AM

18
#514 - Eirik A. Blekesaune / @blacksound

12/26/2014 at 09:33PM

18
#515 - AA / @john42luke

01/02/2015 at 05:58PM

18
#516 - Carlos A Henríquez Q / @lagunex

01/17/2015 at 09:24PM

18
#517 - Плеханов Дмитрий / @onemanstartup

01/19/2015 at 02:17PM

18
#518 - Ethan Chan / @metakirby5

02/12/2015 at 08:25AM

18
#519 - 哆啦比猫 / @cjxgm2

02/13/2015 at 12:32PM

18
#520 - Jérôme Salignon / @JeromeSalignon

02/22/2015 at 08:40PM

18
#521 - Elizabeth / @sprinkles418

03/03/2015 at 05:45PM

18
#522 - Grigoriy Glushko / @grinderrz

03/13/2015 at 12:46PM

18
#523 - TheProgrammer971 / @tp971

03/13/2015 at 10:01PM

18
#524 - Hooman / @namooh

03/22/2015 at 05:21PM

18
#525 - ipson_nek / @ipson_nek

03/25/2015 at 02:04PM

18
#526 - Alice Benign / @AliceBenign

03/29/2015 at 01:08PM

18
#527 - Robin Moussu / @robin_moussu

03/29/2015 at 10:16PM

18
#528 - Fan Zhang / @2bDeactivat3d

04/06/2015 at 03:57AM

18
#529 - Emmanuel Denloye-Ito / @EmmanuelDenloye

04/11/2015 at 03:33PM

18
#530 - Zach Morgan / @zpmorgan

05/01/2015 at 11:10PM

18
#531 - e / @e1914_2014

05/02/2015 at 08:03AM

18
#532 - Adetque / @Adetque

05/29/2015 at 08:45AM

18
#533 - Quota / @Quotad

06/12/2015 at 10:26AM

18
#534 - Liam Thurston / @lthurston188

08/17/2015 at 03:59AM

18
#535 - Kirill Cherkashin / @kirjs

08/31/2015 at 09:13PM

18
#536 - Aleksandr Block / @AleksandrBlock

09/03/2015 at 08:50PM

18
#537 - PL / @petrlaitoch

09/16/2015 at 09:23PM

18
#538 - Adrien Fabre / @statox42

09/22/2015 at 08:14PM

18
#539 - Walker Boh / @walker_boh

09/30/2015 at 09:16AM

18
#540 - Jack Z / @itszhou

10/08/2015 at 04:39PM