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 1268 remaining solutions by signing in and submitting your own entry
#1269 boumediane1 / @boumediane1 - Score: 72 - 01/09/25 @ 22:34
<C-V>Glr10u<C-V>jjjjjlr<Esc>s10<Esc><Esc>hjklhvl<C-V>jjjjjojg<C-A><Esc>u<C-V>jjjjojg<C-A><Esc>ukk<C-V>jjjjjojg<C-A><Esc><Esc>:wa<CR>:q<CR>

0 comments


Created by: @udioica

1269 active golfers, 5683 entries

Leaderboard (lowest score wins):
18
#631 - Eirik A. Blekesaune / @blacksound

12/26/2014 at 09:33PM

18
#632 - AA / @john42luke

01/02/2015 at 05:58PM

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

01/17/2015 at 09:24PM

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

01/19/2015 at 02:17PM

18
#635 - Ethan Chan / @metakirby5

02/12/2015 at 08:25AM

18
#636 - 哆啦比猫 / @cjxgm2

02/13/2015 at 12:32PM

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

02/22/2015 at 08:40PM

18
#638 - Elizabeth / @sprinkles418

03/03/2015 at 05:45PM

18
#639 - Grigoriy Glushko / @grinderrz

03/13/2015 at 12:46PM

18
#640 - TheProgrammer971 / @tp971

03/13/2015 at 10:01PM

18
#641 - Hooman / @namooh

03/22/2015 at 05:21PM

18
#642 - ipson_nek / @ipson_nek

03/25/2015 at 02:04PM

18
#643 - Alice Benign / @AliceBenign

03/29/2015 at 01:08PM

18
#644 - Robin Moussu / @robin_moussu

03/29/2015 at 10:16PM

18
#645 - Fan Zhang / @2bDeactivat3d

04/06/2015 at 03:57AM

18
#646 - Emmanuel Denloye-Ito / @EmmanuelDenloye

04/11/2015 at 03:33PM

18
#647 - Zach Morgan / @zpmorgan

05/01/2015 at 11:10PM

18
#648 - e / @MPeaKelE

05/02/2015 at 08:03AM

18
#649 - Adetque / @Adetque

05/29/2015 at 08:45AM

18
#650 - Quota / @Quotad

06/12/2015 at 10:26AM

18
#651 - Liam Thurston / @lthurston188

08/17/2015 at 03:59AM

18
#652 - Kirill Cherkashin / @kirjs

08/31/2015 at 09:13PM

18
#653 - Aleksandr Block / @AleksandrBlock

09/03/2015 at 08:50PM

18
#654 - PL / @petrlaitoch

09/16/2015 at 09:23PM

18
#655 - Adrien Fabre / @statox42

09/22/2015 at 08:14PM

18
#656 - Walker Boh / @walker_boh

09/30/2015 at 09:16AM

18
#657 - Jack Z / @itszhou

10/08/2015 at 04:39PM

18
#658 - Patrick Mitchell / @jpmitche11

10/19/2015 at 03:32PM

18
#659 - How Si Wei / @houxiwu

10/23/2015 at 12:37PM

18
#660 - Robert Clark / @rsclark2

11/06/2015 at 11:09PM