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):
14
#181 - Abdo Achkar / @Achkar

12/04/2014 at 10:56PM

14
#182 - Anderson Mesquita / @andersonvom

12/05/2014 at 12:00PM

14
#183 - benekeusz / @benekeusz

12/10/2014 at 03:45AM

14
#184 - david hu / @chin33z

12/14/2014 at 08:11AM

14
#185 - kimber gonzalez / @kimberlycreates

12/29/2014 at 08:30PM

14
#186 - juicelink / @juicelink

12/30/2014 at 01:41AM

14
#187 - yachi / @yaachi

12/30/2014 at 03:47AM

14
#188 - Filipe Almeida / @filipe_almeida

12/31/2014 at 03:00AM

14
#189 - Nick Dyer / @nickbdyer

12/31/2014 at 04:08PM

14
#190 - Jake Eskel / @JakeEskel

01/04/2015 at 03:21AM

14
#191 - Matthieu Crapet / @mcr05

01/07/2015 at 07:28PM

14
#192 - Paul / @paxlzi

01/07/2015 at 07:48PM

14
#193 - Hiroshi Kato / @kato1628

01/11/2015 at 11:22AM

14
#194 - Charles Wu / @Congeec

01/13/2015 at 04:13PM

14
#195 - eirc / @eirc

01/17/2015 at 12:16PM

14
#196 - low_ghost / @low_ghost_clone

01/17/2015 at 09:36PM

14
#197 - HÃ¥ken Lid / @haakenlid

01/19/2015 at 10:15AM

14
#198 - m1r4ge / @m1r4ge_ror

01/19/2015 at 11:42PM

14
#199 - Nicolai Skogheim / @NicolaiSkogheim

01/21/2015 at 01:45AM

14
#200 - Harm te Hennepe / @HrmtH

01/22/2015 at 08:48PM

14
#201 - mark0829 / @mark0829

01/22/2015 at 11:57PM

14
#202 - ben / @bpaqd

01/23/2015 at 04:29AM

14
#203 - Adam Stankiewicz / @sheerun

01/25/2015 at 09:36PM

14
#204 - Loser Face / @heypetewhats

01/30/2015 at 04:35PM

14
#205 - Nolic / @cNolic

01/31/2015 at 09:50AM

14
#206 - aborilov / @aborilov

02/19/2015 at 07:02AM

14
#207 - Michael Giuffrida / @mgiuffrida

02/21/2015 at 09:42AM

14
#208 - Alan Berndt / @bentglasstube

02/23/2015 at 05:54PM

14
#209 - octotep / @octotep

02/25/2015 at 03:45AM

14
#210 - Yannic Haupenthal / @yhaupenthal

03/01/2015 at 09:13PM