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

1264 active golfers, 5648 entries

Leaderboard (lowest score wins):
11
#1 - Julian Andrews / @NoLemurs

10/03/2015 at 03:54AM

11
#2 - John Braxler / @braxler

10/09/2015 at 05:19PM

11
#3 - Anno / @AnnoVinyl

10/15/2015 at 03:26PM

11
#4 - Urtica dioica / @udioica

10/15/2015 at 10:22PM

11
#5 - Daniel Pham / @dany_pham

10/16/2015 at 04:22AM

11
#6 - Justin Sermeno / @justinsermeno

10/29/2015 at 10:01PM

11
#7 - agricantare / @agricantare

11/14/2015 at 08:10PM

11
#8 - AD / @Lievr0

11/21/2015 at 08:01AM

11
#9 - kleiduif / @bertwinwubs

11/29/2015 at 02:12AM

11
#10 - Patrick Cichon / @the_nQL

12/07/2015 at 07:07PM

11
#11 - Matthew Desjardins / @Desjardins_M

12/11/2015 at 08:57PM

11
#12 - Jan Path / @jan_path

12/17/2015 at 10:01PM

11
#13 - Aris Kotzias / @ArisKotzias

12/23/2015 at 03:55PM

11
#14 - Alan Kang / @alankang

01/09/2016 at 01:21AM

11
#15 - Jon Krause / @jkrause314

01/20/2016 at 07:00PM

11
#16 - Daniel Suh / @18kehops

02/02/2016 at 04:23PM

11
#17 - Mathias Andersson / @Wraul

02/13/2016 at 08:02PM

11
#18 - Xiaocan Li / @XiaocanLi

02/26/2016 at 11:41PM

11
#19 - Mister Knister / @vimgolf_ctrl_x

03/07/2016 at 01:08PM

11
#20 - Hao Chen / @Chen_Hao

03/09/2016 at 06:42PM

11
#21 - Jer Wilson / @superjercom

03/10/2016 at 02:32AM

11
#22 - Andreas Carben / @meiner_eins

03/13/2016 at 05:06PM

11
#23 - S O / @strangelooperer

04/17/2016 at 07:26PM

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

05/02/2016 at 05:44PM

11
#25 - John Goes / @johnwgoes

05/04/2016 at 02:23AM

11
#26 - Gordon / @gordonczedik

05/20/2016 at 01:03PM

11
#27 - yudera / @yudemente

05/24/2016 at 03:34PM

11
#28 - Slawek Zachcial / @SlawekZachcial

05/24/2016 at 09:08PM

11
#29 - John Doe Sr. / @johndoe67890543

05/27/2016 at 12:28AM

11
#30 - Ameen P / @Ameen_P1

06/08/2016 at 04:18AM