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

932 active golfers, 3983 entries

Leaderboard (lowest score wins):
2
#1 - towc / @MateiCopot

04/02/2018 at 08:27PM

11
#2 - Julian Andrews / @NoLemurs

10/03/2015 at 03:54AM

11
#3 - John Braxler / @braxler

10/09/2015 at 05:19PM

11
#4 - Anno / @AnnoVinyl

10/15/2015 at 03:26PM

11
#5 - Urtica dioica / @udioica

10/15/2015 at 10:22PM

11
#6 - Daniel Pham / @dany_pham

10/16/2015 at 04:22AM

11
#7 - Justin Sermeno / @justinsermeno

10/29/2015 at 10:01PM

11
#8 - agricantare / @agricantare

11/14/2015 at 08:10PM

11
#9 - AD / @Lievr0

11/21/2015 at 08:01AM

11
#10 - kleiduif / @bertwinwubs

11/29/2015 at 02:12AM

11
#11 - Patrick Cichon / @the_nQL

12/07/2015 at 07:07PM

11
#12 - Matthew Desjardins / @Desjardins_M

12/11/2015 at 08:57PM

11
#13 - Jan Path / @jan_path

12/17/2015 at 10:01PM

11
#14 - Aris Kotzias / @ArisKotzias

12/23/2015 at 03:55PM

11
#15 - Alan Kang / @alankang

01/09/2016 at 01:21AM

11
#16 - Jon Krause / @jkrause314

01/20/2016 at 07:00PM

11
#17 - Daniel Suh / @18kehops

02/02/2016 at 04:23PM

11
#18 - Mathias Andersson / @Wraul

02/13/2016 at 08:02PM

11
#19 - Xiaocan Li / @XiaocanLi

02/26/2016 at 11:41PM

11
#20 - Mister Knister / @vimgolf_ctrl_x

03/07/2016 at 01:08PM

11
#21 - Hao Chen / @Chen_Hao

03/09/2016 at 06:42PM

11
#22 - Jer Wilson / @superjercom

03/10/2016 at 02:32AM

11
#23 - Andreas Carben / @meiner_eins

03/13/2016 at 05:06PM

11
#24 - S O / @strangelooperer

04/17/2016 at 07:26PM

11
#25 - Eero-Antero Säisä / @jakolasku

05/02/2016 at 05:44PM

11
#26 - John Goes / @johnwgoes

05/04/2016 at 02:23AM

11
#27 - Gordon / @gordonczedik

05/20/2016 at 01:03PM

11
#28 - Yudi Matsuzake / @yudimatsuzake

05/24/2016 at 03:34PM

11
#29 - Slawek Zachcial / @SlawekZachcial

05/24/2016 at 09:08PM

11
#30 - John Doe Sr. / @johndoe67890543

05/27/2016 at 12:28AM